A NestJS and MongoDB RESTful API that handles alerts for crypto prices.
- Node.js: 16.15.0
- NPM: 8.5.5
- NestJS: 8.0.0
$ npm install
# development
$ npm run start
# watch mode
$ npm run start:dev
# production mode
$ npm run start:prod
Copy the .env.example into a .env file and fill the following variables.
Variable | Description |
---|---|
PORT | API port |
MONGO_URL | MongoDB server URL |
COINRANKING_URL | Coinranking URL |
COINRANKING_API_KEY | Coinranking api key |
If you run the API locally your base URL is: http://localhost:<YOUR PORT>
GET /alerts
POST /alerts
GET /alerts/validated
POST /alerts/validation
The /docs
route provides an OpenAPI documentation.
- Author - Antonio Mata