relay-modern-boilerplate
relay-modern-boilerplate copied to clipboard
An application serving as a PostGraphile + Relay Modern crash course.
Relay Modern Boilerplate
Docker + Postgres + PostGraphile + Webpack + React + TypeScript + Relay Modern = Awesomeness
Talk
This repo is used in my talk Reintroducing Relay Modern where I talk about the overlooked beauties of Relay.
Quick start
- Make sure that you have Docker and Docker Compose installed
- Clone this repo using
git clone --depth=1 https://github.com/enisdenjo/relay-modern-boilerplate.git
- Change directory to
relay-modern-boilerplate
- Run
docker-compose up
to build and start Postgres + PostGraphile + webpack-dev-server
Initial build may take some time because we need to install Watchman from source- Postgres database is exposed at: postgres://localhost:5432/graphql
- GraphQL endpoint is located at: http://localhost:4400/graphql
Explore the schema using GraphiQL at: http://localhost:4400/graphiql - The application is located at: http://localhost:4401
Use[email protected]:password
to login
Documentation
Detailed documentation coming soon, for now happy code digging. 😁
About this repo
To keep the talk consistent and in sync, this repo will not be updated any further. However, if you are interested in how this would look like today or how it can become an actual project, check out heltin 👀 .