Skip to content

hemaxpatel/Sabras

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

SABRAS Online Store

Sabras is a comprehensive full-stack e-commerce application designed to facilitate seamless online shopping experiences. The platform offers robust functionalities for both users and administrators, ensuring efficient product management and secure transactions.

Home Page Explore Menu Cart and Checkout page

  • Admin Panel

Add Item Page Order List

Features

  • User Panel
  • Admin Panel
  • JWT Authentication
  • Password Hashing with Bcrypt
  • Stripe Payment Integration
  • Login/Signup
  • Logout
  • Add to Cart
  • Place Order
  • Order Management
  • Products Management
  • Filter Products
  • Login/Signup
  • Authenticated APIs
  • REST APIs
  • Role-Based Identification
  • Beautiful Alerts

Tech Stack

Run Locally

Clone the project

    git clone https://github.com/hemaxpatel/Sabras.git

Install dependencies (frontend)

    cd frontend
    npm install

Start the Frontend server

    npm run dev

Install dependencies (backend)

    cd backend
    npm install

Start the Backend server

    npm run server

Install dependencies (admin)

    cd admin
    npm install

Start the Admin server

    npm run dev

Make .env file in "backend" folder and store environment Variables

  JWT_SECRET=YOUR_SECRET_TEXT
  SALT=10
  MONGO_URL=YOUR_DATABASE_URL
  STRIPE_SECRET_KEY=YOUR_KEY
  PORT=4000

Setup the Frontend and Backend URL

  • App.jsx in Admin folder const url = YOUR_BACKEND_URL

  • StoreContext.js in Frontend folder const url = YOUR_BACKEND_URL

  • orderController in Backend folder const frontend_url = YOUR_FRONTEND_URL