Generate NFTs with metaplex standard
- Create venv
python3 -m venv venv
- Activate venv
source venv/bin/activate
- Install requirements
pip install -r requirements.txt
- Install development requirements
pip install -r requirements-dev.txt
- Run tests
pytest
- Create config
cp config.yaml.example config.yaml
- Edit config to change
REPLACEME
with your addressvim config.yaml
- Initialize project
nftgen.py --project example --config config.yaml --initialize
- Add your images to the projects/example/traits/ folders that were created by the previous command
- Generate metadata
nftgen.py --project example --config config.yaml --generate-metadata
- Generate images from metadata
nftgen.py --project example --config config.yaml --generate-images
- Validate assets, which checks for minimum rarity and missing values
nftgen.py --project example --config config.yaml --validate
- Combine assets, which copies the images and metadata into one folder
nftgen.py --project example --config config.yaml --combine-assets
You must have solana-keygen
available if you want to generate the environment automatically:
- Create react env for frontend
nftgen.py --project example --config config.yaml --react-env --react-env-start-date "01 Jan 31 12:00:00 GMT" --react-env-keypair ~/.config/solana/devnet-lightcycle.json
Note: there is a Makefile for convenience, update the environmental variables before using
- Add translation csv file, i.e. english.csv, to the translations subdirectory to apply translations via --combine-assets