Skip to content

A full stack responsive Bookstore application developed using the MERN stack (MongoDB, Express.js, React.js, Node.js).

Notifications You must be signed in to change notification settings

Roger9876/bookstore-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 

Repository files navigation

Bookstore Web Application

This is a fullstack Bookstore web application developed using the MERN stack (MongoDB, Express.js, React.js, Node.js). The application allows users to browse and purchase books, with features like user authentication and protected routes.

Prerequisites

Before you begin, ensure you have met the following requirements:

  • Node.js and npm installed on your machine
  • MongoDB installed and running on your machine or accessible via MongoDB Atlas

Installation

Follow these steps to set up the project on your local machine:

  1. Clone the repository:

    git clone https://github.com/Roger9876/bookstore-app.git
    cd bookstore-app
  2. Install server dependencies:

    cd backend
    npm install
  3. Install client dependencies:

    cd ../frontend
    npm install
  4. Set up environment variables:

    Create a .env file in the backend directory and add the following:

    PORT=4001
    MONGODB_URI=your_mongodb_connection_string
  5. Run the development server:

    Open two terminal windows or tabs:

    • In the first terminal, run the backend server:

      cd backend
      npm start
    • In the second terminal, run the frontend development server:

      cd frontend
      npm run dev

Features

  • Bookstore App:

    • Users can browse and purchase books.
    • User authentication for login and registration.
  • Backend:

    • Built with Node.js and Express.js.
    • Uses MongoDB for the database.
  • Frontend:

    • Developed with React.js.
    • Styled using Tailwind CSS.
    • Basic components are imported from the Daisy UI library.
  • Protected Routes:

    • Certain routes, like the Explore page, are protected based on user authentication.
  • Additional Packages:

    • Axios for making HTTP requests.
    • react-hot-toast for notifications.
    • react-slick for carousels and slides.

Contact

For any inquiries, please contact:


Feel free to contribute to this project by opening issues and submitting pull requests. Happy coding!

About

A full stack responsive Bookstore application developed using the MERN stack (MongoDB, Express.js, React.js, Node.js).

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages