/compass-web

The repo for the Compass site.

Primary LanguageTypeScriptGNU Affero General Public License v3.0AGPL-3.0

This is a Next.js project bootstrapped with create-next-app.

Getting Started

First, run the development server:

# install dependencies
yarn

# start dev server
yarn dev

Open http://localhost:3000 with your browser to see the result.

Deploy by docker

# build docker image
yarn docker

.env file

# Google Analytics ID
NEXT_PUBLIC_GOOGLE_ANALYTICS=

# Backend api endpoint
API_URL=

# URL of this site
NEXTAUTH_URL=
# Auth secret
NEXTAUTH_SECRET=

# Github OAuth
GITHUB_ID=
GITHUB_SECRET=

# Gitee OAuth
GITEE_ID=
GITEE_SECRET=

start server with env file

docker run -p 3000:3000 --env-file .env compass-web:0.1.0