Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

148 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Installation

Required Tools

  • Node.js 18+ and npm 9+
  • Git

Frontend (React)

  1. Clone the frontend repository

    git clone https://github.com/gjergj753/EECS4413-Project.git
    cd Frontend
  2. Install dependencies

    npm install
  3. Start the development server

    npm run dev

    The frontend will run at http://localhost:5173/

Backend Spring Boot

  1. Change to Backend Directory

    cd backend
  2. Open MySQL command line or Workbench and run:

    -- Create database
    CREATE DATABASE bookstore_db;
    
    -- Create user
    CREATE USER 'bookstore_user'@'localhost' IDENTIFIED BY 'your_bookstore_password';
    
    -- Grant permissions
    GRANT ALL PRIVILEGES ON bookstore_db.* TO 'your_bookstore_username'@'localhost';
    
    FLUSH PRIVILEGES;
  3. Configure Enviormental Variable:

    --Linux
    export DB_USER="your_bookstore_username"
    export DB_PASS="your_bookstore_password"
    
    --Windows CMD (To set permanent variable, use setx instead of set)
    set DB_USER "your_bookstore_username"
    set DB_PASS "your_bookstore_password"
  4. Install Dependencies:

    mvn clean install
  5. Run the Backend:

    mvn spring-boot:run
  6. Verify Backend is Running properly:

curl http://localhost:2424/health

About

Book e-commerce web application

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages