DevMata / crypto-alert

A NestJS and MongoDB RESTful API that handles alerts for crypto prices.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Nest Logo

Description

A NestJS and MongoDB RESTful API that handles alerts for crypto prices.

Targets versions

  • Node.js: 16.15.0
  • NPM: 8.5.5
  • NestJS: 8.0.0

Installation

$ npm install

Running the app

# development
$ npm run start

# watch mode
$ npm run start:dev

# production mode
$ npm run start:prod

Env variables

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

Resources

If you run the API locally your base URL is: http://localhost:<YOUR PORT>

GET /alerts

POST /alerts

GET /alerts/validated

POST /alerts/validation

OpenAPI

The /docs route provides an OpenAPI documentation.

Stay in touch

About

A NestJS and MongoDB RESTful API that handles alerts for crypto prices.


Languages

Language:TypeScript 94.7%Language:JavaScript 4.7%Language:Shell 0.6%