Docker + Postgres + PostGraphile + Webpack + React + TypeScript + Relay Modern = Awesomeness
This repo is used in my talk Reintroducing Relay Modern where I talk about the overlooked beauties of Relay.
- 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
Usejohn@doe.com:password
to login
Detailed documentation coming soon, for now happy code digging. 😁
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 👀 .