Connect is a dev environment that focuses on developer experience. It is a Docker friendly, enterprise-grade, starting point for anyone wanting to use React and GraphQL in their projects.
Next in the generation of starter kits, Connect doesn't try to obfuscate any functionality from the developer, and it can be changed to suit your needs.
Docker Desktop is needed to build containers and use docker-compose.
npm install
npm setup
docker compose build
docker compose up
npx prisma migrate dev
That's it, you can start changing files. To be sure all is well, though, you can check on a few things:
- Docker Desktop will show
RUNNING
services: (www, graphql, redis, and postgres
) - The site will be accessible via
http://localhost
- GraphQL is accessible at
http://localhost:8080/graphql
ping` - pgAdmin will connect on
http://localhost:8088
, but you can also usenpx prisma studio
if you want a lightweight option.
- React - Main UI
- Material UI
- Apollo GraphQL - Talks to Postgres via Prisma
- Server and Client
- Websockets
- For GraphQL subscriptions via Redis.
- Redis - Pub/Sub
- Postgres - DB
- Automatically generated based on Prisma schema
- Prisma ORM - DB and Code generation