It is a backend API for a Library Management System that allows library staff and members to manage books, memberships, and borrowing activities. The API will be structured around CRUD operations for books, members, and borrow records, with additional endpoints for borrowing and returning books. You will use UUID for unique identification in all tables.
- Backend: Node.js, Express, Typescript
- Database: PostreSQL
- Other Packages: (
Prisma)
Ensure you have the following installed:
- Clone the repository:
git clone https://github.com/bashputi/PostgreSQL-project.git
cd PostgreSQL-projectnpm install- Create a .env file in the root directory.
- Add necessary environment variables as follows:
DATABASE_URL=your-database-urlnpm run startThe server should be running at http:localhost:5000
- Book: Create, get, update, and delete books.
- Member: Create, get, update, and delete members.
- Borrow: borrow a book, and overdue tracking.