- Clone the repo
- Run
npm install
to install needed node modules - Create a file called
.env
in the root of the repo - Paste these contents into the file and replace with your credentials and desired port number:
DB_PASSWORD='1234'
ONID='bennybeav'
PORT=12345
- To start the site up, run
npm run dev
.
- Get on the server you want to run on and do steps 1-4 for dev
- To start the site up and leave it running forever, run
npm start
Most JS code is adapted from or based on the Node starter code for this class:
https://github.com/osu-cs340-ecampus/nodejs-starter-app/
SQL files, css file, favicon, and other files not listed here are our own work except where otherwise noted.
Scope: Whole file
Originality: Structure of routes and commenting style based on starter code; SQL queries are our own.
Date: 3/16/2024
Scope: Whole file
Originality: Structure of file based on starter code; connecting to .env to get secrets is our own work
Date: 3/18/2024
Scope: Whole file except where otherwise noted; see code comments in each file for specific information
Originality: Adapted from the starter code to fit our project's entities and attributes
Date: 3/16/2024
--
Source: https://github.com/osu-cs340-ecampus/nodejs-starter-app/tree/main/Step%208%20-%20Dynamically%20Updating%20Data#create-a-new-javascript-file, second code block, starting from the comment "Start of new Step 8 code for adding new data to the dropdown menu for updating people"
Scope: The last few lines in insert_game_round.js
for adding a new option to the round ID dropdown menu
Originality: Adapted from the starter code to fit our project's entities and attributes
Date: 3/16/2024
Scope: Whole file except where otherwise noted; see code comments in each file for specific information
Originality: Adapted from the starter code to fit our project's entities and attributes
Date: 3/16/2024
--
Source: https://stackoverflow.com/a/5947
Scope: Single line for getting text of currently selected question from Rounds_Questions update dropdown
Originality: Adapted, with our own dropdown menu and variable names
Date: 3/16/2024
Scope: deleteEntity()
function for each file's entity
Originality: Adapted from the starter code to fit our project's entities and attributes
Date: 3/16/2024
--
Scope: The line to find the table and the for loop to find the row to delete, in the deleteRow()
function for each file
Originality: Adapted from the starter code to fit our project's entities and attributes
Date: 3/16/2024
--
Scope: deleteDropdownItem()
function in delete_round.js
Originality: Adapted from the starter code to fit our project's entities and attributes
Date: 3/16/2024
Source: https://github.com/osu-cs340-ecampus/nodejs-starter-app/blob/a890e1f0b39148a4fa6e0314a698b03507ca006f/Step%204%20-%20Dynamically%20Displaying%20Data/views/index.hbs#L12-L23, lines 12-23
Scope: Whole file
Originality: Copied from starter code, except we added a conditional to check for the existence of data, a message if there is no data, and an extra header row (for the delete button column) that is rendered only when the parameter button
we added is true
Date: 3/18/2024
Sample questions and answers taken from the Fall 2023 CS 290 DevDynasty project (authored by Annette Tongsak, Oria Weng, Deepti Ravidath, Jon David-Jackson, and Amish Nautiyal); some were written with the help of ChatGPT. Retrieved from https://github.com/osu-cs290-f23/final-project-devdynasty-fullstack-ascent on Feb. 6th, 2024.
Favicon and homepage image taken from the same project on Mar. 18th, 2024.