- Clone this repo using
https://github.com/Nikhil190804/OnlineStore.git
- Open MySQL Workbench or any other equivalent software that can run MySQL scripts
- Copy the contents of the
DataBase Schema.txt
file and paste it into the MySQL Workbench. This will create a whole MySQL database on your local PC. After this, ensure that your host, user, and password are correct. If not, edit theserver.js
file at line 7 and change accordingly:
const mydb = mysql.createConnection({
host: "localhost",
user: "root",
password: "password",
});
- Now move to the repo directory:
OnlineStore/
- Open a terminal here
- Write
npm install
. This will install all the packages from thepackage.json
file - Now, simply run
node ./server.js
. This will start a server on port 3000 of your local computer, and the site will be opened at this link:https://localhost:3000
- Happy Browsing the items!