Welcome to the README for the Book Store Express App! This is a web application that allows users to browse, search, and purchase books from a virtual bookstore. Technologies Used
This app was built using the following technologies:
Node.js
Express.js
EJS
Mongoose
MongoDB
To run this app on your local machine, please follow these steps:
Clone this repository to your local machine.
Install the necessary dependencies by running npm install.
Create a .env file in the root directory of the app and add the following variables:
MONGODB_URI: the URI for your MongoDB database.
SESSION_SECRET: a secret string used to sign the session ID cookie.
Start the app by running npm start.
Open your web browser and navigate to http://localhost:3000 to access the app.
Features
This app allows users to:
Browse all books in the bookstore
Search for books by title, author, or genre
View the details of a particular book, including its description, price, and rating
Add a book to their cart
View their cart and adjust the quantity of items in it
Checkout and complete their purchase
Structure
The app is structured as follows:
app.js: the main entry point for the app.
routes/: contains the route handlers for the app.
models/: contains the Mongoose models for the app.
views/: contains the EJS templates for the app.
public/: contains the static assets for the app, such as CSS and JavaScript files.
Contributing
If you'd like to contribute to this app, please submit a pull request with your changes. License
This app is licensed under the MIT License. See the LICENSE file for more information.