Skip to content

hsing101/library-management-system

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Library Management System 📚

Its a Project related to Books management for a Libraries 📜.

FrontEnd is divided into two parts (ADMIN && CLIENT)

ADMIN can do -
1.manage books i.e. add/remove/update/delete books.

2.Check user' details i.e. name/id/borrowed book/etc

3.Confirm user's book request && Confirm book Return

4.Manage Book Charges(Extra fee's for not returing book in time)

CLIENT can do -
1.Basic book surfing's and checking availablities

2.Request for a book

3.Viewing/CRUD Operations on Profile || Dashboard

Version Specifications :

  1. NodeJS : v18.16.0
  2. Express : v4.18.2
  3. ReactJS : v18.2.0
  4. Using MongoDB: v6.0.6 Using Mongosh: v2.0.2

How to run Project locally :

  1. Clone the project

  2. Goto Both 'Frontend' and 'Backend' folder

  cd frontend , cd backend
  1. Install dependencies on Both Frontend & Backend
  npm install

NOTE : In 'backend' make sure to create a '.env' file and copy paste the values of '.env.example' into newly created '.env' file

  1. Start the Frontend and Backend

NOTE : If you have any issues or queries about Backend, refer to /backend/BackendInfo/ folder for details

  npm run dev
  1. Once you Run Backend(Server), database will be created automatically on Mongodb & You just have to Import the TABLE Data which is Stored in folder 'mongoDatabase'

For Backend :

make sure your MondoDB server is running (you can check this via windows Services)

open the mongoDB Compass (GUI for mongodb,download if u dont have) and from there you can import the data into respective collections

Import respective .JSON file into database Collection

How to run Project using Docker :

  • Populate localhost mongodb database (explained in Step5 above).
  • goto .env and make sure to use correct 'CONNECTION_URL'
  • then, goto main folder location i.e. cd LIBRARYMANAGEMENTSYSTEM_MERN/ and use command :
docker-compose up

Login Credentials

Starter Login Credentials : (Make sure to import database collections i.e. userdetails json file into the collections)

  1. ADMIN (user_type = "admin_user" ):
 Email : [email protected] , Password : admin
  1. Normal User Can be created by SignUp Page (user_type = "normal_user" ):

Lessons Learned

  1. Code Comments are Loveletter's you leave behind for your future self.
  2. If you cant Solve it, address it for your Future Self. He sure can!

Tech Stack

Frontend : React, Bootstrap

Backend : Node, Express, MongoDB

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages