This is the new website for the Virtual Jacksonville ARTCC, part of the VATSIM Network.
https://vatusa-api.ztlartcc.org/ - Meaningful VATUSA API documentation
This project runs on Postgres 16 and uses prisma. Once you have cloned the repo, setup your environment by changing the following in .env.example:
DATABASE_URL="" # See prisma docs for format
VATUSA_KEY="" # Your development key
Then, initialize your database:
prisma db push
Now install dependencies with pnpm install
, if you haven't, generate your prisma client:
Note
This is not needed if you initialized your database with prisma since it automatically generates
prisma generate
and finally, start a development server:
pnpm run dev
# or start the server and open the app in a new browser tab
pnpm run dev -- --open
This project relies on docker-compose to create the containers. Start by changing these environment variables:
Tip
If the variable is not set to empty quotes below, don't change it
NODE_ENV=production
PORT="" # Chosen port
HOST="0.0.0.0" # Listen on every interface
DATABASE_URL="" # Production url, see prisma docs for format
CONNECT_URL="https://auth.vatsim.net/oauth/authorize"
CONNECT_ID="" # VATSIM Connect Client ID
CONNECT_SECRET="" # VATSIM Connect Client Secret
TOKEN_URL="https://auth.vatsim.net/oauth/token"
USER_INFO_URL="https://auth.vatsim.net/api/user"
VATUSA_KEY="" # VATUSA API Key
SENTRY_AUTH_TOKEN="" # Optional: For Sentry.io
SENTRY_ORG="" # Optional: For sentry.io
SENTRY_PROJECT="" #Optional: For sentry.io
You can manually run:
docker compose up --build -d
Or setup a self hosted runner and let GitHub actions deploy it.
Note
If you chose this option, make sure you setup your runner secrets in the repository settings
We use an abridged version of the GitFlow Branching. In our case, develop is currently master since this entire repo is still in development and NOT production-ready