Demo application
Live instances:
- Deployed to Vercel: https://sea.typescript.work
- Deployed to Docker Swarm cluster: https://sea.boto.space
Uses:
- Apollo
- Next.js
- Github OAuth
First of all: Create a Github OAuth application
- Go here: https://github.com/settings/developers.
- Set Authorization callback URL to
http://localhost:3000/api/auth/gh/callback
How to run locally
- Clone the repository.
- Create
.env.local
file with the following contents (assuming you have created the GitHub OAuth app):
GH_CLIENT_ID=your GitHub client ID
GH_CLIENT_SECRET=your GitHub client secret
- Install the dependencies
yarn
- Run:
yarn dev
How to build docker image locally
Build an image:
yarn docker:build
Run the container (but first create a GitHub OAuth app and put its client ID and secret to .local.env
file as described above):
yarn docker:run