The website for the SPOI Mentoring Program.
To run it on your own:
- Install the required packages using the following command:
npm install
-
Set the values for the environment variables:
CLIENT_AUTH
- Base64 encodedclient_id:client_secret
for the discord application used for OAuth2.URL
- The url base to which the user should be redirected after finishing the discord OAuth2 (e.g.http://localhost:3000
)API_URL
- The url for the API used to check whether a user has been verified. The API should take anid
query parameter and return a JSON response with a boolean keyverified
.DATABASE_URL
- The url of the PostgreSQL database.
-
Generate the prisma client
npx prisma db push
- Use
npm run dev
to start the development server.