React + React Router + MobX boilerplate with a small example app.
clone https://github.com/osenvosem/react-mobx-boilerplate
cd react-mobx-boilerplate
npm i
npm start
— development server on port 8080;npm run prod
— build all bundles and start in production mode;npm start
— start in development mode;npm start:prod
— start in production mode (only after build process);npm run build:all
— build server and client bundles for production;npm run build:client
— build client bundles;npm run build:server
— build server bundle;npm run prod
— alias for build:all and start:prodnpm run clear:builds
— delete all generated bundles;app
├── client.js # client entry point
├── modules # parts of an app
│ ├── Notes
│ │ ├── components
│ │ │ ├── AddNote.js
│ │ │ ├── Note.js
│ │ │ └── NoteList.js
│ │ ├── index.js # must export store
│ │ ├── store.js # stores state and actions
│ │ └── styles.css
│ ├── index.js # gathering stores and passing it to component tree
│ └── sharedStyles.css
├── routes.js
└── shared # shared folder available anywhere in the app
├── components
│ └── Header
└── services