Welcome to the Waterlog API.
This app is a GraphQL lambda (and associated lambdas) for creating and editing "Drinks", and logging "Entries".
- Clone the repo
- Copy
.env.sample
, rename to.env
and populate variables
This project uses Postgres@16 in a docker container. To set up the db:
% docker compose up -d
To run migrations and seed the database, run a dev container of the graphql-lambda:
% docker build -f Dockerfile.dev -t graphql-lambda:dev .
% docker run -it graphql-lambda:dev /bin/bash
% pnpm prisma migrate dev
# After migrations, you don't need this container anymore, feel free to delete
% pnpm build
This project uses the aws sam cli for testing and deployment. To begin using the lambdas locally, run