https://bcfoodapp.github.io/streetfoodlove/
Use an alternate Google account if you want to sign-in with Google! Do not use your main Google account as the app is not guaranteed to be secure.
- MySQL Community Server 8.0
- https://dev.mysql.com/downloads/mysql/
- The root user password should be empty
- If installation requires a password, you can set a temporary password, then remove the password later with
ALTER USER 'root'@'localhost' IDENTIFIED BY '';
- If installation requires a password, you can set a temporary password, then remove the password later with
- Go 1.17
- Node 17.1
- To initialize the database, go to
backend/reset_database
and rungo run .
- (Optional) Install AWS CLI, then configure AWS credentials. If you do not do this, all AWS calls will fail.
- Go to the
backend
folder in PowerShell and run the commandgo run .
- Open your browser and go to http://localhost:8080/ to make sure it is working.
- Go to the
app
folder, and install dependencies withnpm i
- Do
npm start
and wait for it to compile - With the backend server still running, go to http://localhost:3000/streetfoodlove/
- Press ctrl-c to stop the server and npm
| home
|------cert.crt
|------cert.key
|------secrets.json
|------backend
- As shown in the directory tree above, place the
.crt
and.key
certificate files in the parent directory ofbackend
. - Create a file named
secrets.json
with the schema given inbackend/database.Secrets
. - Clone just the
backend
directory to the same directory where the certificates are located.
- Steps 3 to 4 are completed through AWS CodeDeploy using the appspec.yml file.
- Run the
backend
package, passing the environment variableSECRETS_FILE
containing the path to thesecrets.json
file. For example:
SECRETS_FILE=~/secrets.json sudo -E go run .