Overview:
The React + Mobx Quick Starter project is a starting base for creating an isomorphic (universal) mobx react project. It offers a range of features including async/await support, isomorphic CSS and SCSS compilation, token-based authentication, decorators for easily accessing state, hot reloading and sourcemaps, and automatic restarts. The project aims to provide a simple and minimal setup with routing, authentication, database, and server-side rendering.
Features:
- Async/await support
- Isomorphic CSS and SCSS compilation
- MongoDB user register/login/logout
- Token-based authentication
- Decorators for easily accessing state
- Hot reloading and sourcemaps
- Automatic restarts (when server code changes)
Installation:
- Clone the project repository.
- Run
npm installto install the necessary dependencies. - Configure MongoDB by adding models to
src/server/models. - Add stores to
src/config/storesby creating a new class for each store. - Update
src/config/stores.jsto include the new store. - Disable server-side rendering by modifying
server/middleware/render.js. - Run the project in development mode using
npm run devor in production mode usingnpm start.
Summary:
The React + Mobx Quick Starter project provides a starting point for building an isomorphic mobx react project. It offers a range of features including async/await support, token-based authentication, hot reloading, and automatic restarts. The project is optimized for minimal bundle size and speed, and aims to provide a good developer experience with hot reloading and source-maps. It includes a simple and minimal setup with routing, authentication, database, and server-side rendering.