Book CRUS basic usint Typescript
Node.js
Express
Typescript
TSLint
Prettier
Mongoose
GET /api/v1/
- Get All Books (skip and limit can be passed as query)
GET /api/v1/:id
- Get Book by id
POST /api/v1/
- Create Book
PUT /api/v1/
- Update Book
DELETE /api/v1/:id
- Delete Book By id
1- Install dependencies
npm i
##or
yarn
2- Set environment keys
PORT= # Server Port:Default 5000
DB_HOST= # Database Host (mongoDB)
DB_USER= # Database user
DB_PASS= # Database password
DB_NAME= # Database name
3 - Run Service
3.1 - In Development Mode
npm run dev
#or
yarn dev
3.2 - In Production Mode
npm start
#or
yarn start