Skip to content
/ teamzone-server Public template

Time and date for teams in different time zones. Built with Apollo GraphQL, Express, and Prisma

Notifications You must be signed in to change notification settings

usmansbk/teamzone-server

Repository files navigation

Apollo GraphQL Express Server Template

fork with dotenv-vault

Technologies

Prerequisites

Getting Started

Environment Variables

New project

  • Create a .env file by copying the .env.example

  • Create a Sentry project and set the SENTRY_DSN variable

  • Create a new dotenv vault

npx dotenv-vault new -y

Existing project

Login to dotenv-vault

npx dotenv-vault login -y
npx dotenv-vault pull

Build container image

yarn docker:build:dev

Run the application stack

docker compose up

Stop application stack

docker compose down

Test

yarn docker:test

CI/CD

Follow the official docker documentation to setup GitHub workflow.

Add your DOTENV_KEY to the github repo secrets

Development

This template supports all graphql-scalars

Google OAuth

Create a Firebase account and get the GOOGLE_CLIENT_ID and GOOGLE_CLIENT_SECRET from your app's google cloud platform console

Generate test idTokens from google playground

Troubleshoot

App using old env variables

Run npx dotenv-vault build

Docker Unable to connect to database server

Downgrade Dockerfile base to Node 14

About

Time and date for teams in different time zones. Built with Apollo GraphQL, Express, and Prisma

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages