NodeJs REST API with typescript
Before executing the application, make sure that you have the following prerequesites:
- NodeJs
- Yarn
- Docker
The following variables are REQUIRED to work.
SECRET=SECRET //jwt secret
MONGO_URI=MONGO_URI //mongo url
PORT=PORT //default port is 3000
There's two ways to start the application, with or without docker.
In your project base directory,run the command:
docker-compose up
In your project base directory, install all dependencies with the command:
yarn
Then, simply execute the following command to start the application:
yarn start
You can check and test the routes in the /docs route in your api, you can test online in this link : https://ts-api-test-1235.herokuapp.com/docs/
- Fernando Luiz de Carvalho Barbosa