This project is a Library Management System API built using Node.js and Express.js. The API manages books, authors, students, and transactions (issuing and returning books).
To get a local copy up and running, follow these simple steps.
You need to have Node.js and npm installed on your system. You can download them from Node.js Official Website.
-
Clone the repository:
git clone https://github.com/your-username/library-api-backend.git
-
Navigate to the project directory:
cd library-api-backend
- Install dependencies:
npm install
- Start the server:
npm start
The server will be running at http://localhost:8000.
API Routes
- Books API
Base Route: /api/v1/books
- Authors API
Base Route: /api/v1/authors
- Students API
Base Route: /api/v1/students
- Transactions API
Base Route: /api/v1/transactions
Technologies Used
Node.js: JavaScript runtime built on Chrome's V8 JavaScript engine.
Express.js: Fast, unopinionated, minimalist web framework for Node.js.
MongoDB: NoSQL database used to store book, author, student, and transaction data.
Mongoose: ODM (Object Data Modeling) library for MongoDB and Node.js.