A serverless function that implements the GraphQL API for Lumina services. It uses a PostgeSQL database, async-graphql
to serve GraphQL queries and is designed to be deployed to AWS Lambda.
if it updates the database -> graphql/mutations
if it reads the database and is a top-level query -> graphql/queries
if it reads the database and is a method of an object -> graphlql/types
Create a .env file based on the following template:
DATABASE_URL="postgres://${PG_USER}:${PG_PASSWORD}@${PG_HOST}/${PG_DATABASE}?sslmode=require"
JWT_SECRET=
STRIPE_SECRET_KEY=
OPENAI_KEY=
SENDGRID_KEY=
- Clone the repository to your computer
- Install Rust toolchain
- Install Docker Engine
- Start docker
- Write a test for new feature or development
- Run the test
Deployment has been automated via github actions
Edit schema.sql and then run ./migrate.sh
.