Run npm install, then create a .env file in the root directory and fill with the properties defined below.
| Variable | Example | Notes |
|---|---|---|
| AUTH_URL* | https://tenliapp.com |
The base URL of the project (Used for more than just authentication) |
| AUTH_SECRET* | none |
Can be automatically filled using npx auth secret |
| AUTH_{PROVIDER}_ID | none |
Replace {PROVIDER} with the name of the provider. Example: DISCORD. At least one (1) provider is required. |
| AUTH_{PROVIDER}_SECRET | none |
See above notes for AUTH_{PROVIDER}_ID |
| DATABASE_URL* | none |
URL for the database with credentials. See Prisma's documentation for supported databases. |
| USE_ACCELERATE | false |
Set this to true if you're using a Prisma provided Accelerate database. If not, set this to false |
| PORT | 3000 |
Port the web server should run on. Defaults to 3000 |
*Required variable
- Discord
More coming soon (Or add your favorite provider and submit a PR! :))
npm run dev
npm run buildnpm start