- Node.js 18+ and npm 9+
- Git
-
Clone the frontend repository
git clone https://github.com/gjergj753/EECS4413-Project.git cd Frontend -
Install dependencies
npm install
-
Start the development server
npm run dev
The frontend will run at http://localhost:5173/
-
Change to Backend Directory
cd backend -
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;
-
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"
-
Install Dependencies:
mvn clean install
-
Run the Backend:
mvn spring-boot:run
-
Verify Backend is Running properly:
curl http://localhost:2424/health