Skip to content

Instantly share code, notes, and snippets.

View viral-sangani's full-sized avatar
🎯
Focusing

Viral Sangani viral-sangani

🎯
Focusing
View GitHub Profile
@viral-sangani
viral-sangani / NFTEpicGame-contract.md
Created January 13, 2022 12:05
NFTEpicGame Contract Details
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/utils/Counters.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "./libraries/Base64.sol";
import "hardhat/console.sol";

Build a social media dApp and deploy it on Polygon Network

Overview

  • In this tutorial I will explain how to create a social media app using solidity smart contract.
  • I already have this app running on this site - https://decentragram.vercel.app/ (You need to connect to Matic Mumbai testnet in Metamask to use this website.) I have attached a video of this website below in this gist.
  • Audience will learn how to create smart contracts, how to use IPFS to upload files in decentralized manner and how to deploy your contracts on polygon network.

Who is this tutorial for?

@viral-sangani
viral-sangani / config.md
Created March 27, 2020 06:54
Django SSL Setup

Steps to Add SSL Encryption To Django Hosted on Apach2 Server

* Note You need to have your Django project already hosted on Server. If not follow other setup instructions.

  • Step 1 :- apt-get update
  • Step 2 :- apt-get install software-properties-common
  • Step 3 :- add-apt-repository universe
  • Step 4 :- add-apt-repository ppa:certbot/certbot
  • Step 5 :- apt-get update
  • Step 6 :- sudo apt-get install certbot python-certbot-apache
@viral-sangani
viral-sangani / config.md
Last active March 27, 2020 06:54
Django Config Steps

Steps to Make you Django Project Online (from Scratch)

* Note You need to have your Django project ready and start a server in any hosting website (aws, azure, ..) and login through SSH

  • Step 1 :- Become Root in your server - sudo su
  • Step 2 :- cd /
  • Step 3 :- apt update && apt upgrade -ya
  • Step 4 :- mkdir -p /<Project Name>/site/logs /<Project Name>/site/public /<Project Name>/django /<Project Name>/auth -> create folders
  • Step 5 :- apt install python3-pip -y
  • Step 6 :- pip3 install virtualenv