apollo-graphql-postgres

Graphql server with Apollo and Postgres from https://www.robinwieruch.de/graphql-apollo-server-tutorial.

  • [x] Built with TypeScript
  • [ ] Commented
  • [ ] Tested

Use

  • Ensure Postgres is set up locally and create a .env file with:
DATABASE=postgres
DATABASE_USER=postgres
DATABASE_PASSWORD=postgres

SECRET=myjsonsecretkey

(replacing with your credentials)

Deploying

  • Install the Heroku CLI
  • heroku login
    heroku git:clone -a apollo-graphql-postgres
    cd apollo-graphql-postgres
        
  • yarn deploy after committing changes