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";
- 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.
* 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
* 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 -y
a - 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