This repository contains the final project that I developed using the skills I acquired at JRS Coding School. Here are step-by-step instructions to set up and run this project on your local machine.
- Download and install MySQL
- During the installation, when prompted, create a username as 'root' and password as 'admin'.
- Download and install MySQL Workbench
- Create a new connection in MySQL Workbench:
- Name it as 'MyConnection'.
- Change the connection to 'localhost'. Keep all other settings as default.
- Connect to the database:
- Click on the 'MyConnection' to connect.
- If prompted, enter the password (admin), click 'Save Password in Vault', and then click 'Connect'.
Next, execute the SQL script to set up the Parts Store Schema.
- Find the SQL script at
~sqlScript.sql- Open the file and select all, then copy the entire file.
Use the shortcuts:
CTRL+AthenCTRL+C(Windows) or⌘+Athen⌘+C(Mac).
- Open the file and select all, then copy the entire file.
Use the shortcuts:
- Paste the script into 'Query 1' in MySQL Workbench.
- Execute the script by clicking the lightning bolt icon. (Note: The automatic execution of the script might not work but it's still possible manually.)
- Download and install Visual Studio Code.
- Open the PartsStore project folder in VS Code:
File -> Open...
- Open the PartsStore project folder in VS Code:
- Open a terminal in VS Code:
Terminal -> New Terminal. - Navigate to the server file:
cd ~/Partsstore/src/servers/server.js. - Execute the server file:
$ node server.js.
- Open a second terminal in VS Code.
- Navigate to the project directory:
cd ~/partsStore. - Execute the following commands to update dependencies, install packages and start the server:
$ npm update
$ npm install
$ ng s -oCongratulations! The application should now be running in your local environment.