This project is a REST API for a library management system, which allows users to manage books, book rentals, school classes, and user accounts.
- User authentication and authorization
- Book management
- Book rental management
- School class management
These instructions will help you set up the project on your local machine for development and testing purposes.
- Node.js >= 14.x.x
- npm >= 6.x.x
- PostgreSQL >= 12.x.x
- TypeScript >= 4.x.x
- Clone the repository:
git clone [email protected]:Cylop/untis-book-rent-backend.git
- Install dependencies:
npm install
- Create a
.env
file in the root directory and set the environment variables as required.
ISBNDB_KEY=
ISBNDB_URL
NODE_ENV
PORT
DB_URL
DB_HOST
DB_PORT
DB_USER
DB_PASSWORD
DB_DATABASE
SECRET_KEY
LOG_FORMAT
LOG_DIR
ORIGIN
- Compile TypeScript files:
npm run build
- Start the development server:
npm run dev
Run the following command to execute the tests:
npm test
- Express - Web framework for Node.js
- TypeORM - Object-relational mapping library for TypeScript and JavaScript
- TypeScript - Typed superset of JavaScript
Please read the CONTRIBUTING.md file for details on the process for submitting pull requests to the project.
This project is licensed under the MIT License - see the LICENSE.md file for details.