Team Members: Cecelia Peterson, Harry Le, Matthew McJoynt, Prasoon Sinha, Riza Hassan, Walt Boettge
Website allowing customers get COVID-19 information about local Madison restaurants. Restaurants can create accounts to give potential customers access to information like their safety policies and live capacity.
- Install Git/GitBash (https://git-scm.com/downloads), Node.js (https://nodejs.org/en/)
- If this file is being viewed outside of the git repository, reach out to Prasoon Sinha with a git username to get access.
- Clone the repository.
Run:git clone https://github.com/psinha25/covid-19-restaurant-system.git
- Change directory to project (either use command or open VSCode at the project folder)
Run:cd covid-19-restaurant-system
- On terminal, check you are on the right working directory by running the following
Run:
pwd
You should see[whatever path leading up to this]/covid-19-restaurant-system
- Create .env file for secret information
Run:
touch .env
- Paste this in .env
MONGO_URI_DEV="..."
Reach out to Harry for this URI - Run:
npm install
This will download the packages of the backend to your node_modules folder. - Change directory to client
Run:cd client
- Run:
npm install
This will download the packages of frontend to your node_modules folder. - Change directory back to project cd ..
- Launch both the server and client (both backend and frontend) by running:
Run:
npm run dev
- A browser window should open to localhost:3000 and
- To log in as a restauarant, reach out to Harry for a username and password
Selenium runs using the .side files found in /test/client/. These can be run directly using the selenium browser extension, or via the command line using selenium-side-runner
.
To run all frontend tests using the command line:
- Run
npm run seeds
. This will ensure the database is in a known state before running the tests. Be careful -- this will overwrite the current database! - Run
npm run dev
to launch the server. - Run
npm run frontend-test
will cause the tests to be run
Alternatively, if selenium-side-runner
is installed, the .side files can be run directly. Check if the package is installed by running selenium-side-runner --version
. If it is not installed, run npm install -g selenium-side-runner
. Additional dependencies might also need to be installed, such as jest and webdriver