NFT Collection built with Metaplex's Candy Machine
Welcome to the Ecoverse NFT Collection! This repo contain two parts.
An Ecoverse NFT is a unique digital asset that represents ownership of a piece of land tiles in Ecoverse. The NFT contains information about the forest. The forest information can be used to calculate the carbon dioxide (CO2) sequestered by different plantations (farms) around the world.
This API allows you to update the NFT with the NFT ID. Because we need to store the forest information in an NFT, we can use the API to update the NFT.
This API work together with Ecoverse APIs
https://github.com/BalloonBox-Inc/ecoverse-apis
- src folder
- An express API
- Update NFT with selected land tiles
- pre-steps folder
- Create NFT collection
- Create Metaplex's Candy Machine
- One off steps
- NodeJS version 16 and up
- npm (preferred)
- Typescript
- Solana CLI
Ecoverse is on Solana
- Pinata JWT
- see Pinata's docs
- https://docs.pinata.cloud/
- Quicknode RPC
- see Quicknode's docs
- https://www.quicknode.com/docs/solana
- Generate Solana private key for third party auth
- see Solana's docs
- https://docs.solana.com/cli/conventions
- Clone the project
- Install
- npm install
- Create
.env
- See the .env.example
- npx ts-node pre-steps/1_create_collection.ts
- npx ts-node pre-steps/2_create_candy_machine.ts
- npx ts-node pre-steps/3_add_items.ts
- Local DEV with build
- npm run dev
- Local PROD
- npm start
- Heroku run
- npm run heroku