- Install dependencies
npm install
- Create OAuth credentials for GitHub
- Copy
.env-fileMake sure to generate the app secret and fill out your newly generated OAuth credentials.cp .env.example .env
openssl rand -hex 32
- If you already have MySQL running using systemd, stop it:
systemctl stop mysql.service
- Start MySQL and Redis (for persistent login sessions)
docker-compose up -d
- Migrate the database. Note that MySQL can take a few seconds to start.
npx prisma migrate dev
- Start the application
npm run dev
You should follow this guide.
You will need the following information:
| Field | Value |
|---|---|
| Application name | Anything you like, I used BTH pattern Group 14 local |
| Homepage URL | http://localhost:4000 |
| Application description | Anything you like, can be left empty |
| Authorization callback URL | http://localhost:4000/auth/github/callback |
