$ npm install
$ npm run dev
(Linux/Mac) $ npm start (Windows) $ npm run winstart
You may need to run npm install -g nodemon (-g stands for global)
The following instructions for the unix/mac command line log in as root, create the specific account to be used in the code, confirm visually, and exit.
$ mysql --user=root mysql
mysql> create user 'browncar'@'localhost' identified by 'brown';
mysql> grant all privileges on . to 'browncar'@'localhost' with grant option;
Note: markdown has removed the asterisk above on github. If viewing from github, please use: mysql> grant all privileges on *.* to 'browncar'@'localhost' with grant option;
mysql-> select user from mysql.user;
mysql> \q
Note: You will need to have the password and username in your mysql match that in the newStart.js file (possibly insertTable.js as well).
$ mysql -u root -p
mysql> create database caraway;
mysql> \q
$ mysql -u root -p caraway < caraway.sql
5 Windows) Import the caraway table into my sql from the command line. Note: your mysql path in quotes may be different.
$ "C:\Program Files\MySQL\MySQL Server 5.7\bin\mysql.exe" -u root -p caraway < caraway.sql
Current accountIDs and passwords:
Peter001 - peterpw Sarah001 - brown Bruce001 - brucepw Ann001 - annpw