You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
thegu5 edited this page Nov 6, 2023
·
10 revisions
How do I run Attendizer?
Prep
You'll need a Vercel account to create the database and deploy the application.
Running Attendizer Locally
Prerequisites
Install Node.js from here. This will also get you npm, although you can use a Node version manager as detailed here.
Project Setup
Clone the repository to your computer (git clone)
Go into the project directory with cd attendizer
Install dependencies with npm install
Get the database credentials from the database's page in your Vercel account (.env format) and place them in a .env file in the current directory. (the same directory as package.json)
Add the following line to your .env file, changing the value if you want to set a custom key:
KEY=""
Generate the Prisma client (which lets us access the database) with npx prisma generate (and only the database is new, npx prisma db push too)
Start the project with npm run dev
Deploying to Vercel
Run npx vercel in the project's root directory, and follow the steps it provides.
If you want to deploy to production, pass the --prod flag to the previous command. This can also be done on Vercel's website.