This repo contains the project developed by Team 21 (Devin Gonzales, Claire Lin, and Patrick Silvestre) for CS 157A at San Jose State University during the Fall 2019 semester.
Project Data Model and Database Design v1
Project Data Model and Database Design v2
Project Data Model and Database Design v3 (Current)
(Tested on Ubuntu 20.04)
Run the following using your shell:
git git@github.com:pjsilvestre/CS157A-21.git
cd CS157A-21/express-app
Make sure you have MySQL installed, and start your server if not running already:
sudo service mysql start
If your MySQL root password is not password
, you can change it as follows using your shell, then MySQL:
$ sudo mysql -u root -h localhost -p
Enter your password: ****************
mysql> ALTER USER 'root'@'localhost' IDENTIFIED BY 'password';
Alternatively, navigate to express-app/config/database.js
, and change authentication details as necessary.
Run the following using MySQL:
mysql> source ../sql/initialize-schema-and-data.sql
Make sure you have Node.js installed, then run the following using your shell, making sure you're in the CS157A-21/express-app
directory:
npm install
npm run devstart
The app should now be running on localhost:3000.