Ensure you have the following installed:
Run the following command to install necessary dependencies:
cd /api
npm installcd /web
npm installModify the .env file located in the /api directory to specify your Postgres connection URL.
Example:
DATABASE_URL='postgres://username:password@localhost:5432/database'Generate a random value to use as your encryption seed.
Modify the .env file located in the /api directory to specify this secret.
Example:
BETTER_AUTH_SECRET='sR17KEeIhzRVtfOR1StK7as6w43imxnE'Create OAuth applications for Discord, Google, and GitHub.
Modify the .env file located in the /api directory to specify these connections.
Example:
DISCORD_CLIENT_ID=''
DISCORD_CLIENT_SECRET=''Create a Resend API key here.
Modify the .env file located in the /api directory to specify this key.
Example:
RESEND_API_KEY='re_VNQodBmv_S89xwtZLAb1aerkXti43Z4qf'Run the following command to generate migrations:
npx drizzle-kit generateRun the following command to apply migrations:
npx drizzle-kit migrateUpdate your local NGINX config file to include the routes specified in nginx-local.conf then reload NGINX.
cd /api
npm run devcd /web
npm run devlocalhost/api/reference
localhost/api/auth/reference