Skip to content

GraphQL API to log and track drink consumption and water content

Notifications You must be signed in to change notification settings

ChrisPlease/drink-api

Repository files navigation

Water Log API

GraphQL API to log various drinks

Development Guide

Requirements

  • Auth0 - This API is protected by authentication provided by Auth0.
  • Docker

Getting started

  • Clone the repo
  • Copy .env.sample, rename to .env and populate variables
  • Add the development domain to your local hostfile
  • Generate dev certificates
    • using mkcert, install the root CA certificate: mkcert -install

    • Install certs in certs directory:

      mkcert -cert-file ./certs/caCert.pem -key-file ./certs/caPrivkey.pem <dev domain>

      Note: Cert file must be named caCert.pem, and key file must be named caPrivkey.pem.

  • Start the server docker compose up

Note: This project uses docker-nginx-certbot to generate certificates. Please review the documentation on advanced usage as it relates to local development.