Skip to content

Latest commit

 

History

History
18 lines (16 loc) · 945 Bytes

README.md

File metadata and controls

18 lines (16 loc) · 945 Bytes

Steps to run the project

  1. Clone this repo using https://github.com/Nikhil190804/OnlineStore.git
  2. Open MySQL Workbench or any other equivalent software that can run MySQL scripts
  3. 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 the server.js file at line 7 and change accordingly:
const mydb = mysql.createConnection({
 host: "localhost",
 user: "root",
 password: "password",
});
  1. Now move to the repo directory: OnlineStore/
  2. Open a terminal here
  3. Write npm install. This will install all the packages from the package.json file
  4. 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
  5. Happy Browsing the items!