This project is an API Rest that uses the following technologies:
- NodeJS
- Express
- Typescript
- MongoDB (Mongoose)
$ npm install
- You need to create a MongoDB database and put the URL connection of your database in the /src/config/dbConnect.ts file.
- The only part of the URL that is not in the file is the password, you need to configure the variable DB_PASSWORD in the .env file.
You have to create a .env file in the project directory root and configure the DB_PASSWORD of your MongoDB database.
- DB_PASSWORD=password
# development
$ npm run dev
- The API has routes for Author and Book (the only two models of the project), you can check all the routes available in /src/routes, basically has the CRUD (Create, Read, Update and Delete) operations for both models.