Route | Method | Description |
---|---|---|
/api/v1 | GET | Home API |
/api/v1/notes | GET | Get all available notes |
/api/v1/notes/:id | GET | Get note based on its id |
/api/v1/notes/add | POST | Add new note |
/api/v1/notes/edit/:id | PATCH | Edit note based on its id |
/api/v1/notes/delete/:id | DELETE | Delete note based on its id |
![]() |
![]() |
![]() |
![]() |
![]() |
- Clone this repo.
- Install all dependencies with
npm install
. - Run all SQL commands provided from
notes_db.sql
. You can find the file insrc/lib/utils/notes_db.sql
. - Create a
.env
file. You can check the format in.env.example
file. - Type
npm run dev
in your terminal and see the result inhttp://localhost:5000
.