Please build the backend boilerplate project for NFT metadata(use opensea metadata standard) server using node.js/javascript.
For database, plz use the PostgreSQL and Knex.js(NPM package that can intereact with sql).
Backend should have CRUD functions for metadata.
No authentication needed.
Please fork this repo and send forked repo url once it's done.
This API has endpoints that allow clients to
- Add new metadata for a NFT collection item
- Add metadata for a NFT collection item by the tokenId if it was previously deleted
- Get all collection items metadata
- Get metadata for a particular collection item
- Update metadata for a particular collection item
- Delete metadata for a particular collection item
- Delete all collection items metadata
Kindly refer to the attached Postman collection postman_collection.json
To install dependencies, run:
npm install
Create a file named .env
in the root folder, you can copy the content of file sample.env
cp sample.env .env
You can change the DB_URL environment variable to your choice, set to local PostgreSQL server by deault.
npm run migrate
npm run unmigrate
npm run dev:watch
npm test
npm run dev
Refer to package.json
file for more npm run commands possible.