Skip to content

sanghaibiraj/readscape

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 

Repository files navigation

ReadScape - MERN Stack Bookstore Application

ReadScape Homepage
Homepage showcasing the book catalog.


Overview

ReadScape is a full-stack MERN (MongoDB, Express.js, React, Node.js) bookstore application that enables seamless book purchasing and management. The app includes separate functionalities for users and administrators.


Features

For Users

  • Browse Books: View a catalog of books with detailed descriptions.
  • Add to Cart: Select books and add them to the cart.
  • Checkout: Complete purchases securely.
  • Order History: Access past orders for easy reordering or reference.

For Admin

  • Manage Books: Add, edit, delete, and view books in the inventory.
  • User Management: View and manage user accounts.

Authentication

  • Firebase authentication is integrated for secure and easy user login and registration.

Admin Panel
Admin panel for managing books and users.


Tech Stack

  • Frontend: React with Vite for fast development.
  • Backend: Node.js with Express.js.
  • Database: MongoDB for storing book and user information.
  • Authentication: Firebase for user authentication.

How to Run the Project

Frontend

  1. Clone the repository and navigate to the frontend directory:

    cd frontend
  2. Create a .env.local file in the root of the frontend directory (same level as package.json) and add the following variables:

    VITE_API_KEY="your_firebase_api_key"
    VITE_Auth_Domain="your_firebase_auth_domain"
    VITE_PROJECT_ID="your_firebase_project_id"
    VITE_STORAGE_BUCKET="your_firebase_storage_bucket"
    VITE_MESSAGING_SENDERID="your_firebase_messaging_sender_id"
    VITE_APPID="your_firebase_app_id"
  3. Install dependencies:

    npm install
  4. Start the development server:

    npm run dev

Backend

  1. Navigate to the backend directory:

    cd backend
  2. Create a .env file in the root of the backend directory (same level as package.json) and add the following variables:

    DB_URL="your_mongodb_connection_string"
    JWT_SECRET_KEY="your_jwt_secret_key"
  3. Install dependencies:

    npm install
  4. Start the development server:

    npm run start:dev

Cart Page
Cart page for reviewing selected books before checkout.


Contributing

Contributions are welcome! Feel free to fork the repository and submit a pull request.


Author

This project was built with ❤️ by Biraj Sanghai.

About

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages