Hi there. This project will enable you to create NFT's using Python and Django
- Clone this repo
git clone --branch full-code [email protected]:bobby-didcoding/did_nft.git
- Install 'Ubuntu' and set up Redis (https://www.youtube.com/watch?v=_nFwPTHOMIY)
- Download
Ubunto
fromwindows store
and launch app - create a username (must be an email) & password
- Now create redis repository
sudo apt-add-repository ppa:redislabs/redis
- Now update and upgrade packages
sudo apt-get update
thensudo apt-get upgrade
- Now install Redis
sudo apt-get install redis-server
- Create a
.env
file from the.env.template
and fill-in the environment variables specific to your setup (eg. DB name, user and password) - Set up a virtual environment
python -m venv env
- Activate virtual environment
cd env/scripts && activate && cd ../..
- Install dependencies for your local environment by running
pip install -r requirements.txt
- Run
python manage.py makemigrations
- Run
python manage.py migrate
- Run
python manage.py collectstatic
- Open Ubuntu terminal and fire up a Redis server
redis-server
- Open another Ubuntu and set up a Redis CLI
redis-cli
- Open new cmd in root and use this command
celery -A nft.celery worker --pool=solo -l info
to fire up a celery worker - Run
python manage.py runserver
- Follow tutorial at https://didcoding.com/tutorial/create-nfts-using-django/