An API to support the BeKindly.Today kindness challenge app.
Run npm install
Run npx prisma generate
Development environment variables should be stored in a file in the root directory named .env.dev
.
This file will not be tracked by git and is unique to your local directory.\
- DATABASE_URL
- Required
- Contains the url of the postgres database
- Port
- Optional for development
- Lists the port that the server will run on
- POSTGRES_PASSWORD
- Required
- Contains the password used for the postgres database
- NODE_ENV
- Required
- Sets the enviroment to know whether to use authentication or not
- KINDE_BACKEND_CLIENT_ID
- The ID of the client on Kinde
- KINDE_URL
- The URL of the website on Kinde's subdomain
- SITE_URL
- The URL of BeKindly
- KINDE_CLIENT_SECRET
- The secret of the client on Kinde
- UNAUTHORIZED_URL
- The URL that unauthorized users are redirected to when attempting access of a protected route
- Start the docker container
- Run
npm run dev:docker
- Connect to the backend at https://localhost:$PORT
- Run