- Scalable GraphQL server: The server uses
graphql-yoga
which is based on Apollo Server & Express - Pre-configured Apollo Client: The project comes with a preconfigured setup for Apollo Client
- MongoDB: Uses Mongoose as bindings to a local or remote MongoDB database.
- Tooling: Out-of-the-box support for GraphQL Playground
- Extensible: GraphQL Models are automatically generated from Mongoose schema with graphql-compose
For a fully-fledged React & Apollo tutorial, visit How to GraphQL. You can more learn about the idea behind GraphQL boilerplates here.
You need a local or remote MongoDB instance to start the server. To configure a remote connection, just take a look at the connection code to find which enviroment variables are used.
Copy this repo in your local machine and then install the required dependencies:
cd react-fullstack-graphql/basic/
yarn install
cd server
yarn install
Now you're ready to start the server and the client, just type to run the server:
yarn start
Open another terminal instance to run the client:
cd react-fullstack-graphql/basic/
yarn start
The GraphQL boilerplates are maintained by the GraphQL community, with official support from the Apollo & Graphcool teams.
Your feedback is very helpful, please share your opinion and thoughts! If you have any questions or want to contribute yourself, join the #graphql-boilerplate
channel on our Slack.
This boilerplate has been modified by @andtos90 to use MongoDB with Mongoose instead of Prisma.