GraphQL + React Boilerplate allows you to start new web project from scratch using React, Apollo, Mobx-State-Tree, Mobx and Styled components.
Also this boilerplate contains babel configuration to use decorators from ES7 and HMR with React.
This is a frontend part of GraphQL boilerplate projects. You can also review graphql-nodejs-boilerplate to see how things works on the backend side with NodeJS and Express.
Note: this boilerplate based on Mobx-State-Tree React Boilerplate and uses Mobx and Mobx-state-tree libraries as state manager.
If you want to enable prerendering for this project please take a look on prerender-spa-boilerplate based on prerender-spa-plugin
Use these steps to install project
1. yarn install
2. yarn start
development
yarn build
staging
yarn staging
production
yarn production
- Uses webpack to build project.
- Uses Babel to compile ES6 and ES7 code.
- Uses Apollo client to work with GraphQL
- Uses Mobx and Mobx-State-Tree for state management
- You can use SASS\SCSS within this boilerplate.
- Check your code with ESLint and Prettier.
- Supports styled components.
- Supports hot-module-reload.
- React
- React Router
- TypeScript
- Apollo
- Mobx-State-Tree
- Mobx
- Styled components
- Webpack 4
- ESLint
- Prettier
- Babel
- Stylus
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :D
Vlad Morzhanov
Copyright (c) 2018 Vlad Morzhanov. You can review license in the LICENSE file.