- Visual Studio Code
- Prettier - Code formatter
- GitLens — Git supercharged
- EditorConfig for VS Code
- Clone this repository
- Make sure project folder already active at terminal / command line.
- Run
npm install
to install dependency - Run
npm run db:create
to configure db,npm run db:migrate
to migrate table,npm run db:seed
to insert initial data into db - Run
npm run prepare
to setup husky - Run
npm run start
to run project - Happy Hacking
Route | Method | Description |
---|---|---|
/v1/books | GET |
Get books list |
/v1/books/:id | GET |
Get book by ID |
/v1/books | POST |
Save new book |
/v1/books/:id | PATCH |
Update book by ID |
/v1/books/:id | DELETE |
Delete book ID |
Route | Method | Description |
---|---|---|
/v1/docs | GET |
Show swagger UI |
npm run test