Demo 2: Youtube
Report 4: Google Docs
Report 3: Google Docs
Report 2: Google Docs
Report 1: Google Docs
#Instructions to Run Server
REQUIRED DEPENDENCIES AND INSTALL COMMANDS (terminal/cmd):
express: npm install express –save
mysql2: npm install mysql2
firebase: npm install firebase
cookie-parser: npm install cookie-parser
jsonwebtoken: npm install jsonwebtoken
REQUIRED FILES IN DIRECTORY:
password.json:
{
“password”: “your mysql server password here”
}
sendgridAPI-DONOTUPLOAD.json:
{
“key”: “your sendgrid API key here”
}
firebaseAPI-DONOTUPLOAD.json:
{
"apiKey": "...",
"authDomain": "...",
"projectId": "...",
"storageBucket": "...",
"messagingSenderId": "...",
"appId": "...",
"measurementId": "...",
"databaseURL": "..."
}
NOTE: We are providing these files to you in the email where we gave our github link.
Step-By-Step:
- Have Node installed and, in terminal, run all of the necessary commands to get the required dependencies specified above.
- Ensure you have downloaded (or created, if absolutely necessary) the json files specified above into the same directory as the “Server.js” file.
- Configure your mySQL server to port 3306 and start it. (This should be the default port, can be done with
startsql.bat
orstartsql.sh
) - Change password in password.json to your mySQL password
- Navigate to Software-Team12 directory (the one containing “Server.js”)
- Type command
node Server.js
to begin the server - Open web browser and navigate to localhost:8080 to view the website