Skip to content

Divya2k5/BookstoreMERN

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

10 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

BookstoreMERN

A fullโ€‘stack Bookstore application built using the MERN stack (MongoDB, Express, React, Node.js).

๐Ÿงพ Table of Contents

๐Ÿ“– About

This project is a Bookstore application where users can browse, add, edit, and delete books. It features separate backend and frontend directories, showcasing how to structure and deploy a MERN stack app.

โœ… Features

  • Browse a list of books
  • View details of each book
  • Add a new book
  • Edit existing book details
  • Delete books
  • User interface built using React
  • RESTful API backend using Node.js + Express
  • Data stored in MongoDB

๐Ÿ›  Tech Stack

Layer Technology
Database MongoDB
Backend Node.js, Express
Frontend React
Styling CSS / (optional)

๐Ÿš€ Getting Started

Prerequisites

Before you begin, make sure you have:

  • Node.js (v14+ recommended)
  • npm or yarn
  • MongoDB running locally or a MongoDB Atlas connection URL

Installation

  1. Clone the repo
    git clone https://github.com/Divya2k5/BookstoreMERN.git
    cd BookstoreMERN
    
  2. Setup Backend cd backend npm install

Create a .env file (if required) and set your MongoDB URI, e.g.:

MONGODB_URI=<your_mongodb_uri>

npm start

  1. Setup Frontend cd ../frontend npm install npm start

  2. Access the app Open your browser and navigate to: http://localhost:3000 (or relevant port)

๐ŸŽฎ Usage

Use the UI to browse available books.

Click โ€œAdd Bookโ€ to create a new book entry.

Use โ€œEditโ€ to update book details.

Use โ€œDeleteโ€ to remove a book.

All actions are persisted in the MongoDB database via the backend API.

Folder Structure

  • BookstoreMERN/
    • backend/
      • models/
      • routes/
      • controllers/
      • .env
      • server.js
    • frontend/
      • src/
      • public/
      • package.json
    • .gitignore

๐Ÿค Contributing

Contributions are welcome!

Fork the repository

Create a new branch (git checkout -b feature/YourFeature)

Commit your changes (git commit -m 'Add ...')

Push to the branch (git push origin feature/YourFeature)

Open a pull request and describe your changes

Please make sure your code adheres to existing style and includes relevant tests where applicable.

๐Ÿ“„ License

This project is open source and available under the MIT License . Feel free to use, modify, and distribute.

Thank you for checking out BookstoreMERN! Happy coding ๐Ÿ˜Š

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •