- express
- express-validator
- sequelize
- sequelize-typescript
- swagger-jsdoc
- swagger-ui-express
- cors
- colors
- morgan
- @types/express
- @types/jest
- @types/supertest
- @types/swagger-jsdoc
- @types/swagger-ui-express
- jest
- nodemon
- supertest
- ts-jest
- ts-node
- typescript
- @types/cors
- @types/morgan
This project has the purpose to create a REST API, which works appropriately when data are coming into Postgre database, executing operations such as:
This is can be acceded from another API with the objective of reading, writing, updating and deleting data to the database. Among the methods that have been used for working with the database are:
- Get
- Post
- Put
- Patch
- Delete
As this project had been created using Node.Js, the most appropriately would be to use a server that works with Node, these servers could be for example railway, Fl0, render, and so on. In order to build this project, we use the next command combination:
npm install && npm run dev
We start the project with the command:
node dist/index.js
Something very important are the environment variables, the environment variables used by this project are the following:
- DATABASE_URL: this variable allows us to connect to a database server both in local as online, and this database can be MySQL, PostgresSQL or any database that we can connect, using sequelize framework.
- PORT: this is number provided by our hosting and can be for example
3000or10000and so on. - FRONTEND_URL: this is the url that provides our hosting services and should be for example
https://example.comorhttp://localhost:5173but in both cases can never be for exampleorhttps://example.com/, it means the url without '/' to the end of the url.http://localhost:5173/
This project was built using Node.js and Typescript technologies.





