Skip to content

A Library Management System built using Node.js (Express.js) for the backend, MariaDB as the database, and JWT and Session Authentication for secure user management. The system allows users to manage books, perform book borrowing and returning operations, and provides role-based access control.

License

Notifications You must be signed in to change notification settings

rahulbharti5/library-management-system-backend

Repository files navigation

Library Management System

Overview

This project is a Library Management System connected to a MySQL server. Follow the steps below to set up your environment and run the application.

Getting Started

Prerequisites

Make sure you have the following software installed on your machine:

Installation

  1. Clone the repository:

    git clone https://github.com/rahulbharti5/Library-Management-System.git
    
  2. Navigate to the project directory:

    cd Library-Management-System
    
  3. Install dependencies:

     npm install
    
  4. Create a ".env.development" file in the root of the project and provide the necessary configurations. Example:

    DB_HOST=localhost
    DB_USER=root
    DB_PASSWORD=password
    DB_DATABASE=library_database
    SECRET_KEY=mysecretkey
    

Adjust the values according to your MySQL server configuration and application needs.

Running the Application

Use nodemon to run the application. Nodemon automatically restarts the server when changes are detected. ```bash npm run dev

Visit http://localhost:3000 in your browser to view the application.

Additional Configuration

Update other configuration settings in the .env.development file as needed. Feel free to explore and modify the code to suit your project requirements.

Contributing

If you would like to contribute to this project, please follow the contribution guidelines .

License

This project is licensed under the Apache License 2.0 .

About

A Library Management System built using Node.js (Express.js) for the backend, MariaDB as the database, and JWT and Session Authentication for secure user management. The system allows users to manage books, perform book borrowing and returning operations, and provides role-based access control.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published