This repository contains the code for the NFT Tracker project. The project is a web application that allows users to track the price of NFTs on the Ethereum blockchain.
The application expects the following environment variables to be set:
- Database (for persistence)
DB_HOST
- The host of the databaseDB_PORT
- The port of the databaseDB_USERNAME
- The username of the databaseDB_PASSWORD
- The password of the databaseDB_DATABASE
- The name of the database
- Data API (for retrieving NFT data)
ETHERSCAN_API_KEY
- The API key for Etherscan
- Notification API (for sending notifications)
To install the project, run the following commands:
npm install
npm run dev # for development
npm run build # for production
npm start
During local development, the environment variables can be set in a .env.local
file in the root directory of the project.
To install the project using Docker, run the following commands:
docker build -t nft-tracker .
docker run -p 3000:3000 nft-tracker -e DB_HOST=... -e DB_PORT=... -e DB_USERNAME=... -e DB_PASSWORD=... -e DB_DATABASE=... -e ETHERSCAN_API_KEY=... -e TWILIO_ACCOUNT_SID=... -e TWILIO_AUTH_TOKEN=... -e TWILIO_FROM_PHONE_NUMBER=... -e SENDGRID_API_KEY=...