An open API service indexing awesome lists of open source software.

https://github.com/dschep/serverless-graphile

βš‘πŸ˜πŸ•ΈοΈ Serverless project for deploying a PostGraphile service
https://github.com/dschep/serverless-graphile

aws graphile graphql lambda postgraphile postgresql serverless

Last synced: 22 days ago
JSON representation

βš‘πŸ˜πŸ•ΈοΈ Serverless project for deploying a PostGraphile service

Awesome Lists containing this project

README

        

# βš‘πŸ˜πŸ•ΈοΈ Serverless PostGraphile

A lightweight implementation of [PostGraphile](https://graphile.org) on
[AWS Lambda](https://aws.amazon.com/lambda/) using [Serverless](https://serverless.com).

## Easy deploy
The `serverless.yml` file is built with a few CLI options so that you can deploy without editing
the config!
```
npm i # install dependencies
npx serverless deploy --database-url postgresql://user:password@host/database
```

### Additional deploy options
You can specify graphile plugins to be loaded with a space delimited list with the `--append-plugins` CLI
option. The plugins will be automatically installed on deploy. EG:
```
npx serverless deploy \
--database-url postgresql://user:password@host/database \
--append-plugins='@graphile/postgis @graphile-contrib/pg-simplify-inflector'
```