🚀 Live Demo: solid-home.vercel.app
A simple ecommerce platform for buying home furniture — inspired by IKEA.
It includes role-based access with key functionalities for each user type.
- Can browse the website and view furniture
- Cannot add products to the cart
- Add products to the cart
- Validate and complete purchases
- Full CRUD (Create, Read, Update, Delete) for products
- Manage user roles (promote, demote, or block users)
- Includes login and signup system
- Roles: Guest, User, Admin
This guide explains how to set up and run the frontend and backend of the Home Decoration project on your local machine.
-
Open a terminal and navigate to the frontend folder:
cd home_decoration_page -
Install the dependencies:
npm install
-
(Optional) Fix any security issues:
npm audit fix
-
Start the development server:
npm run dev
-
Open MySQL Workbench (or your preferred SQL tool).
-
Create a new database:
CREATE DATABASE home_decoration;
-
Open the config file located at:
home_decoration_page/WebServer/app/config/db.js -
Replace the following fields with your local database credentials:
userpasswordport
-
In your terminal, navigate to the backend folder:
cd home_decoration_page/WebServer -
Install backend dependencies:
npm install
-
(Optional) Fix any security issues:
npm audit fix
-
Start the backend server:
npm start
✅ Your project is now running locally!
The frontend will be served on http://localhost:5173 (or similar), and the backend API will be accessible based on your configured port.