Lib-Space

My-LibSpace

My Libspace

LibSpace is a backend API project designed to teach students the fundamentals of authentication and CRUD operations using Node.js, Express, and MongoDB. The system allows users to securely register and log in to receive a JSON Web Token (JWT). Authenticated users can then manage a digital library by adding new books, viewing the entire collection or specific id, updating book details, and deleting entries, ensuring that sensitive data modification is protected by secure token verification.

🚀 About the Project

Key Features


🛠️ Built With


💻 Getting Started

Follow these instructions to get a copy of the project up and running on your local machine.

Prerequisites

Before you begin, ensure you have the following installed:

Installation

  1. Clone the repository

    git clone https://github.com/Mayankkumar1234/My-LibSpace
    cd My-LibSpace
    
  2. Install dependencies

    [e.g., npm install]
    
  3. Configure Environment Variables
    • Create a .env file in the root directory.
    • Add the following variables :
      MONGO_URI=your_database_url
      PORT = Your server port
      SECRET_KEY= For JWT
      
  4. Run the application

npm run start or node index.js