Welcome to the Online Shop repository! This project is a simple online shop application built with Node.js, Express, and MongoDB.
Online Shop provides a straightforward e-commerce solution for selling products online. It includes features such as user authentication, product management, and a user-friendly interface for customers to browse and purchase products.
To get started with Online Shop, follow these steps:
-
Clone this repository to your local machine:
git clone https://github.com/Basma-90/Online_Shop.git
-
Navigate to the project directory:
cd online-shop -
Install dependencies:
npm install
-
Set up environment variables:
Create a
.envfile in the root directory and add the following configuration:DATABASE_URI=your_database_uri SESSION_SECRET=your_session_secret
Replace your_database_uri with your MongoDB database URI and your_session_secret with a secret key for session management.
Start the server:
bash
npm start
Access the application in your web browser: