All Projects → vivaxy → Gt React Scaffold

vivaxy / Gt React Scaffold

Licence: mit
🥚A boilerplate for client apps of webpack, react, redux, router...

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Gt React Scaffold

Blog.vue
☘ 一个vue的个人博客项目,配合.net core api教程,打造前后端分离
Stars: ✭ 362 (+2313.33%)
Mutual labels:  webpack, router
React Redux Antdesign Webpack Starter
react + redux + ant design + react-router 4 + webpack 4 starter
Stars: ✭ 44 (+193.33%)
Mutual labels:  webpack, router
Redux Json Router
Declarative, Redux-first routing for React/Redux browser applications.
Stars: ✭ 37 (+146.67%)
Mutual labels:  webpack, router
Ng Router Loader
Webpack loader for NgModule lazy loading using the angular router
Stars: ✭ 47 (+213.33%)
Mutual labels:  webpack, router
React Redux Bootstrap Webpack Starter
React 16.9 + Typescript + React-Router 4 + Redux + Bootstrap 4 + Hot Reload + redux-devtools-extension + Webpack 4 + styled-components STARTER
Stars: ✭ 133 (+786.67%)
Mutual labels:  webpack, router
React Redux Graphql Apollo Bootstrap Webpack Starter
react js + redux + graphQL + Apollo + react router + hot reload + devTools + bootstrap + webpack starter
Stars: ✭ 127 (+746.67%)
Mutual labels:  webpack, router
Webvr Webpack Boilerplate
A webvr multi-scenes Single-page application for three.js, webpack
Stars: ✭ 47 (+213.33%)
Mutual labels:  webpack, router
Angular Router Loader
A Webpack loader that enables string-based module loading with the Angular Router
Stars: ✭ 194 (+1193.33%)
Mutual labels:  webpack, router
Miox
Modern infrastructure of complex SPA
Stars: ✭ 374 (+2393.33%)
Mutual labels:  webpack, router
Webpack2 Express Heroku Starter
Starter app using Webpack 2, Express, setup to deploy to Heroku.
Stars: ✭ 12 (-20%)
Mutual labels:  webpack
Routing
The Routing component maps an HTTP request to a set of configuration variables.
Stars: ✭ 7,080 (+47100%)
Mutual labels:  router
React Niukeapp
仿牛客APP客户端react项目,使用antdmobile的webpack模板创建
Stars: ✭ 12 (-20%)
Mutual labels:  webpack
Thinkful Workshop React Redux Node Mongodb Webpack2
Stars: ✭ 12 (-20%)
Mutual labels:  webpack
Nebular
💥 Customizable Angular UI Library based on Eva Design System 🌚✨Dark Mode
Stars: ✭ 7,368 (+49020%)
Mutual labels:  webpack
Vue Rails Form Builder Demo
An example of Rails app using vue-form-for gem
Stars: ✭ 12 (-20%)
Mutual labels:  webpack
Elm Webpack Starter
Boilerplate for developing Elm apps on Webpack
Stars: ✭ 884 (+5793.33%)
Mutual labels:  webpack
Dva Arcgis Cli
A command-line tool extends dva-cli, with JavaScript API for ArcGIS.
Stars: ✭ 12 (-20%)
Mutual labels:  webpack
Front End Stack
Starter kit for building single-page app using React, Redux, RxJS, Reselect, Material UI, Immer, Prettier and Webpack.
Stars: ✭ 11 (-26.67%)
Mutual labels:  webpack
Webpack Hashed Chunkids
a plugin to help webpack to generate unique chunk id based on unique module id
Stars: ✭ 15 (+0%)
Mutual labels:  webpack
Front End Canteen
你的前端食堂,吃好每一顿饭🍥
Stars: ✭ 878 (+5753.33%)
Mutual labels:  webpack

Initializing

  • Install nodejs.

  • Install gt.

    yarn global add granturismo

  • Add scaffold to gt gt config add vivaxy/gt-react-scaffold https://github.com/vivaxy/gt-react-scaffold.git.

  • Create your project directory mkdir my-project-name && cd my-project-name or git clone ....

  • Run gt init.

  • Select vivaxy/gt-react-scaffold.

Contributing

Contributing


gt-react-scaffold

Feature

  • react
  • redux
  • webpack
  • eslint
  • page navigation animation
  • react router
  • react redux
  • redux thunk
  • react hot reload
  • webpack development server
  • multiple entries
  • mock server
  • unified error center
  • internationalization
  • environments
  • webpack visualizer
  • postcss
  • autoprefixer
  • less
  • test cases

Concept

flowchart

As we find out html are mostly same in react projects, we extract the same html into a template file which lays in html folder.

html-webpack-plugin is used to generate released html files, which load corresponding js files.

entries stores js main methods, we split main container to containers because entry could not be hot-module-replaced.

entriess import containerss, which is one to one correspondent. render method in entry provides all commonly used setups, such as redux store, provider, injectTapEventPlugin for material-ui, and custom styles.

containers is the headquarters which imports all dummy components, passing through props to them. Also, containers interacts with redux reducers and actions.

It is recommended that you wrap containers into another. redux will re-render a container when and only when mapped reducers have been updated.

We do not use async redux for ajax requests because ajax status is not that important for us to record. So, we invoke api in containers, get response, and determine what actions to call.

We store every string in i18n for better internationalization.

Built project files will be in the release folder. With build.log, you can see every build details. With stats.html, you can optimize your dependencies to make project smaller.

Developing

  • yarn run dev

Building

  • yarn run build

Reference

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].