TaskLink-ApiRest are the api rest for a app movil
Create postgress database with the following script database, that script create the database for this proyect
Add .env file in the root of the proyect, the next table respresent all posible enviorent varaibles
Name | Description | Required | Default | Values |
---|---|---|---|---|
POSTGRES_CONECTIONSTRING_DEV | Postgress connection string for testing | N | ||
POSTGRES_CONECTIONSTRING | Postgress connection string production | Y | ||
API_HOST | Api host | N | localhost | |
API_HTTP_PORT | Api port | N | 3000 | |
JWT_SECRET | Json web token secret token | Y | ||
ENVIRONMENT | Variable for check app enviorent | N | development | test, production, development |
EMAIL_USER | Email user, it will be used to send emails | Y | ||
EMAIL_PASSWORD | Email password | Y | ||
GOOGLE_API_MAPS_URL | Google maps api base url | Y | https://maps.googleapis.com | |
GOOGLE_API_KEY | Google api key | Y |
Install all dependencies with npm
npm install
Execute test for make sure the proyect are good
npm test
Start the proyect
npm start
And open in the browser the next link: http://localhost:3000/swagger