A simple express project showcasing REST APIs
- Clone the repository:
git clone https://github.com/shashikrs/book-api.git
- Navigate to the project directory:
cd book-api
- Initialize the project:
npm init -y
- Install dependencies:
npm install express mongoose dotenv nodemon
To start the project, run: (development)
npm run start-dev
To start the project, run: (production)
npm start
Open your browser and go to http://localhost:3000/api/v1
.
For swagger docs go to http://localhost:3000/api-docs
.
- Basic routes
- Middleware
- Error Handling
- REST API (CRUD)
Contributions are welcome! Please open an issue.
This project is licensed under the MIT License. See the LICENSE file for details.