This project is a Next.js app created to help students and faculty on a campus track their possible exposure to COVID-19. This allows users to log locations that they have visited in a day as well as offers them alerts to notify them of possible exposure.
The application can be viewed here: https://notify-19.herokuapp.com/
First run the following command in the rood directory (ensure you are using node v14.0.0 or higher):
npm install
Ensure that you have a local postgresSQL database set up with the correct information added to a new .env file in the root directory
cd notify-19
vim .env
Then paste the following lines in and update with relevant information
DATABASE_URL = "postgresql://USER:PASSWORD@HOST:PORT/DATABASE"
Then you can push the database schema to the database using the following command:
prisma migrate dev --preview-feature
Then, run the development server:
npm run dev
# or
yarn dev
Open http://localhost:3000 to see the landing page!
From here the app should be up and running with all functionality.