Skip to content

Latest commit

 

History

History
 
 

basic

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Boilerplate for a Basic Fullstack GraphQL App with React


🚀 Bootstrap your fullstack GraphQL app within seconds
Basic starter kit for a fullstack GraphQL app with React and Node.js - based on best practices from the GraphQL community.

Features

  • 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.

Requirements

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.

Getting started

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

Contributing

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.