This is a simple Node.js project that provides a REST API for managing books.
- Node.js (version X.X.X)
- npm (version X.X.X)
-
Clone the repository:
git clone https://github.com/your-username/your-repo.git
-
Install dependencies:
npm install
-
Start the server:
npm start
The following API endpoints are available:
- GET /api/books: Retrieve all books
- GET /api/books/:id: Retrieve a book by ID
- POST /api/books: Create a new book
- PUT /api/books/:id: Update an existing book
- DELETE /api/books/:id: Delete a book by ID
The available configuration options are:
- PORT: The port number on which the server will listen (default: 3000)
This project is licensed under the MIT License.