- Create new notes
- Retrieve all notes
- Retrieve a specific note by ID
- Update an existing note
- Delete a note
- Clone this repository.
- Run
npm install
to install dependencies. - Configure the connection to your MongoDB database in the
.env
file. - Run
npm start
to start the server.
- Access the API through
http://localhost:3000/api-notes
. - Use tools like Postman or cURL to interact with the API endpoints.
/src
|-- /app
| |-- /controllers
| | |-- noteController.js
| |
| |-- /services
| |-- noteService.js
|
|-- /config
| |-- db.js
|
|-- /core
| |-- /entities
| | |-- noteEntity.js
| |
| |-- /repositories
| |-- noteRepository.js
|
|-- /interfaces
| |-- /api
| | |-- expressRouter.js
| |
| |-- /middlewares
| | |-- expressRouter.js
|
|-- /utils
| |-- helpers.js
|
|-- index.js
|-- server.js
This project is under the MIT License - see the LICENSE file for more details.
Command | Action | |
---|---|---|
⚙️ | dev or start |
Starts local dev server at localhost:3000 . |
You can reach me at [israelhurtarte@gmail.com].