/local-library-using-express

A minimal full-stack library management application.

Primary LanguageJavaScript

Local Library

A comprehensive example of building a full-stack JavaScript application using Node.js, Express, and MongoDB.

The application provides a platform for librarians to manage books, book instances, authors, genres, and user accounts.

It covers various aspects of web development, including data modeling, routing, authentication, and deployment.

Features

  • Browse and search for books, authors, genres, and book instances
  • Create, update, and delete books, authors, genres, and book instances
  • Manage user accounts and authentication
  • Borrow and return book instances
  • View the list of borrowed books for each user

Tech Stack

NodeJS    Express.js    MongoDB    Mongoose    PUG    Bootstrap

Installation

  1. Clone the repository:

    git clone https://github.com/0xabdulkhalid/local-library-using-express.git
    
  2. Install dependencies:

    cd local-library-using-express
    npm install
    
  3. Set up the MongoDB connection by creating a .env file with the following content:

    MONGO_URI=your-mongodb-connection-string
    
  4. Start the application:

    npm start
    
  5. Open your web browser and navigate to http://localhost:3000 to access the Local Library application.

Deployment

  • The Local Library using Express application is deployed on Glitch, a platform for hosting and deploying web applications.

  • Please note that since the application is hosted on the free tier of Glitch, the initial load time may be slower due to the server's cold start. (Approx 5 mins)

  • You can access the deployed application here

License

This project is licensed under the MIT License.