A simple python backend service that interacts with the contract of the ERC-721 standard in the Ethereum blockchain.
Tested on Ubuntu 20.04 and is compatable with Python==3.8.10 Django==2.2.12 web3==5.28.0
These instructions will get you a copy of the project up and running on your local machine. There are two ways to run a project.
- run without Docker
- run with Docker
For correct work you need to create .env file in ~/PROJECT_DIR/nftjob/.env with the following content:
WEB3_INFURA_PROJECT_ID=<endoint infura>
ADDRESS_CONTRACT=<address contract>
ME=<your address>
ABI=<ABI of contract>
PRIVATE_KEY=<private key your address>
Clone the repository
git clone https:github.com/Alexander671/nftjob
Navigate into the nftjob
directory
cd nftjob
Install, using pip
:
pip install -r requirements.txt
python3 manage.py makemigrations
python3 manage.py migrate
python3 manage.py runserver
Clone the repository
git clone https:github.com/Alexander671/nftjob
Navigate into the nftjob
directory
cd nftjob
- Build the image
docker build .
- Š”ompiling the image with the team
docker-compose build
- Run container:
docker-compose up -d
Some edge-cases examples are available on the examples
folder.
- Alexander Matveev - Initial work - Alexander671