• Stars
    star
    127
  • Rank 282,790 (Top 6 %)
  • Language
    JavaScript
  • Created about 8 years ago
  • Updated almost 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

react js + redux + graphQL + Apollo + react router + hot reload + devTools + bootstrap + webpack starter

Full ES6+ React + React-Router + Redux + GraphQL + Apollo + Bootstrap with Hot Reload and redux-devtools STARTER

My new React + redux project starter. This time I add graphQL and Apollo Client. This starter also embeds JWT token based authentication (check Route to get an example of dealing with protected routes).

preview

  • webpack is as simple as possible
  • ReactJS is written with optimization tricks (stateless, pure render...).
  • pure front-end = server independant (use whatever you want as server: NodeJS, Rails, .NET...)
  • contains both SPA and SSR server implementation
  • caching implementation with workbox-webpack-plugin (so that it follows PWA path!)
  • redux + devTools + hot reload= how did I developed without them before?
  • graphQL makes API to be " has been "
    • no more struggle in redux with async thank to Apollo Client (you can even get rid of redux thunk or redux saga if you needed theses just for your asyncs. Otherwise keep them since they are nice 😄)
  • redux-devtools-extension to make developments a pure pleasure.

New 🎉 since v3.0.0!

  • Add code splitting by using dynamic import (router level but you can extend to component level as you feel the need)
  • NOTE: combined with SSR server and SW for caching, this is a good start to follow PWA path!
  • Want to know more about code splitting with SSR a React application, read this complete beautiful article (don't forget to clap the author - no I don't even know him 😉 - but this is a really nice job)

Detailed Content

Front:

Tool chain:

  • babel 6+
  • eslint
  • hot reload
  • loaders
    • js / jsx
    • css
    • json
    • images formats
    • svg and fonts formats

tests:

  • jest

Usage

Prerequisite

Node JS version required is >=6.x.

Build with node js v8.x but should be ok with node js 6.x.

Better use nvm to manage your Node JS versions.

server

An Easy and fast way to get your graphql backend is to register for free at Scaphold.

This starter has been created with a scaphold free plan.

Go to Scaphold register and create an application

create_app_modal preview

  • set AppName
  • and a description (so that after creating hundreds of applications you won't get lost).

You will be able to dicover predefined schemas. This starter will not need more than predefined (User):

schema_desiner_overview.png

  • you can define you own schema (not needed for this starter to run). But I suggest you have a look on well written tutorials to get more familiar with the schema designer.

GraphiQL is integrated in Scaphold so discover and train predefined graphQL queries and mutations:

graphiQL_overview.png

Configure starter application:

In Scaphold click on My API and copy your application link.

Then, past it (to replace http://localhost:8080/graphql) in your networkInterface in the app config (in ./src/front/config.index.js):

export const appConfig = {
  // apollo client:
  apollo: {
    networkInterface: 'http://localhost:8080/graphql'
  }
};

from now you got all needed to run this starter

Install dependencies

npm install

run dev : hot reload mode (+ redux-devtools-extension)

npm run start

NOTE: be sure you already installed redux-devtools-extension in your browser to get the best development experience.

bundle dev mode (+ redux-devtools)

npm run dev

tests

npm run test

Analyze production bundle (PWA friendly)

npm run analyze

bundle production mode

npm run prod

run dev bundle

npm run start-spa-dev

run prod bundle

npm run start-spa-prod

Donate

Do you use & like react-redux-graphql-apollo-bootstrap-webpack-starter but you don’t find a way to show some love? If yes, please consider donating to support this project. Otherwise, no worries, regardless of whether there is support or not, I will keep maintaining this project. Still, if you buy me a cup of coffee I would be more than happy though 😄

Support via PayPal

License

The MIT License (MIT)

Copyright (c) 2019 Erwan DATIN

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

More Repositories

1

react-native-beacons-manager

React-Native library for detecting beacons (iOS and Android)
Objective-C
580
star
2

react-director-admin-template

ReactJS version of Director Responsive Admin Template Free
HTML
349
star
3

easyFormGenerator

create amazing forms without coding : form editor based on angular formly
JavaScript
258
star
4

react-redux-bootstrap-webpack-starter

React 16.14 + Typescript + React-Router 5 + Redux + Bootstrap 4 + Hot Reload + redux-devtools-extension + Webpack 5 + styled-components STARTER
HTML
139
star
5

react-bootstrap-webpack-starter

ReactJS 16.11 + new React Context API +react Router 4 + webpack 4 + babel 7+ hot Reload + Bootstrap 4 + styled-components
HTML
114
star
6

react-redux-nextjs-bootstrap-pwa-starter

a progressive web app starter with next js redux + redux-persist + bootstrap
JavaScript
70
star
7

reactNativeBeaconExample

React-Native Beacon example (medium article related)
JavaScript
45
star
8

react-redux-antdesign-webpack-starter

react + redux + ant design + react-router 4 + webpack 4 starter
JavaScript
44
star
9

react-redux-nextjs-bootstrap-starter

next + react + redux + bootstrap starter
JavaScript
24
star
10

rn-analog-clock

React-Native (iOS native bridge) native alternative to traditional time picker (Objective C bridge version).
Objective-C
21
star
11

react-redux-immutable-webpack-ssr-starter

React + React-Router 4 + Redux + ImmutableJS + Bootstrap + webpack 3 with with Server side rendering, Hot Reload and redux-devtools STARTER
JavaScript
21
star
12

reactNativeReduxFastStarter

React Native Redux fast Starter
JavaScript
17
star
13

react-native-smooth-phone-input

react-native user friendly phone input (users may not like country codes when typing their phone number 😉)
JavaScript
14
star
14

react-redux-immutable-webpack-starter

React + Redux + Immutable + React Router 4 + Bootstrap + Webpack 3 -starter
JavaScript
9
star
15

reactWeather

ReactJS-NodeJS-ExpressJS-ElasticSearch application
JavaScript
9
star
16

react-native-ibeacons

React Native library for detecting beacons (iOS and Android)
Java
9
star
17

react-material-ui-next-starter

React 16.3+ Material UI Next Starter
JavaScript
9
star
18

react-redux-bootstrap-webpack-ssr-starter

react js + redux + react router 4 + bootstrap + webpack3 + server side rendering starter
JavaScript
8
star
19

jsair-mobile

JS Air mobile application
HTML
7
star
20

react-material-starter

ReactJS + MaterialUI starter
JavaScript
5
star
21

react-redux-material-next-starter

React 16.3+ Redux Material UI Next Starter
JavaScript
5
star
22

react-bootstrap-webpack-ssr-starter

react js + bootstrap + webpack 2 + react-router 4 + server side rendering starter
JavaScript
5
star
23

reactReduxMaterialQuizz

React Redux version of the material quiz
JavaScript
5
star
24

reactjs-facebook-tutorial-in-es6

ReactJS Facebook tutorial in ES6 and using JSPM
JavaScript
4
star
25

reactMaterialQuizz

a react js material quizz (ES6)
JavaScript
4
star
26

react-native-analog-clock

A nice and native alternative to traditional time picker (Swift bridge version).
Objective-C
3
star
27

ng2MaterialQuizz

an angular2 material quizz
TypeScript
3
star
28

react-material-redux-starter

React + React-Router 4 + Redux + Material UI + Hot Reload + redux-devtools + Webpack 2 STARTER
JavaScript
2
star
29

ngMaterialQuizz

An angular material quiz (ES6)
JavaScript
2
star
30

react-bs-multi-purpose-webapp-starter

A multi-purpose web app starter made with ReactJS and Bootstrap.
JavaScript
2
star
31

reactNativeReduxSidemenuTabbarStarter

React Native Redux alternate iOS fast starter with sidemenu and tabbar
JavaScript
2
star
32

electron-react-file-management

electron-react-file-management
JavaScript
1
star
33

yeomanMeanStackBootstrapStartup

yeoman MEAN stack initiated + bootstrap
ApacheConf
1
star
34

react-es6-jspm-starter

minimalist ReactJS ES6 with JSPM starter
JavaScript
1
star
35

angular-material-harmony-starter

an angular material starter using ES6
JavaScript
1
star
36

magic-markdown-to-html

electron application to convert markdown into github flavour html
JavaScript
1
star
37

PermisDocteWebsite

PermisDocte app website
1
star
38

jest-demo

JavaScript
1
star
39

easy-form-generator-webpack-example

easyFormGenerator example use case with ES6+ and webpack
JavaScript
1
star
40

react-marvel-heroes

react (ES6+) + react router 3 + redux and... Super heroes from Marvel 😄
JavaScript
1
star
41

SimpleReactNativeStarter

a simple React Native Starter
Objective-C
1
star
42

typescript-react-native-starter

Objective-C
1
star
43

EDASwiftAnimatedBackgroundImage

background animated image - panorama like - linked in app like
Swift
1
star
44

typescript-react-bootstrap-webpack-starter

ReactJS + Bootstrap + web pack with Typescript boilerplate
TypeScript
1
star
45

node-flow-babel-starter

NodeJS (LTS) using minimalist babel for flow typing experience without any other babel transpile (pure NodeJS)
JavaScript
1
star