All Projects → edulan → React App Example

edulan / React App Example

Electron application example using React and MobX

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to React App Example

Mobx Persist
persist mobx stores
Stars: ✭ 525 (+2525%)
Mutual labels:  mobx
Mobx State Tree
Full-featured reactive state management without the boilerplate
Stars: ✭ 6,317 (+31485%)
Mutual labels:  mobx
Polobx
A state manager for Polymer based in MobX
Stars: ✭ 24 (+20%)
Mutual labels:  mobx
Mobx
Simple, scalable state management.
Stars: ✭ 24,636 (+123080%)
Mutual labels:  mobx
Ignite Bowser
Bowser is now re-integrated into Ignite CLI! Head to https://github.com/infinitered/ignite to check it out.
Stars: ✭ 586 (+2830%)
Mutual labels:  mobx
Weapp Bmscore
a weapp to count badminton game score
Stars: ✭ 17 (-15%)
Mutual labels:  mobx
Mobx React
React bindings for MobX
Stars: ✭ 4,814 (+23970%)
Mutual labels:  mobx
System dashboard
Boilerplate project - Cross-Platform System Dashboard using Flask, React, Mobx and Web-Workers
Stars: ✭ 13 (-35%)
Mutual labels:  mobx
Wewechat
💬 Unofficial WeChat client built with React, MobX and Electron.
Stars: ✭ 5,618 (+27990%)
Mutual labels:  mobx
Openui5 Mobx Model
ui5 bindings for mobx
Stars: ✭ 23 (+15%)
Mutual labels:  mobx
React Mobx React Router4 Boilerplate
React, React-Router 4, MobX and Webpack 2-boilerplate with async routes.
Stars: ✭ 566 (+2730%)
Mutual labels:  mobx
Surmon.me.native
📱 My blog app, powered by react-native
Stars: ✭ 579 (+2795%)
Mutual labels:  mobx
Graphql Mst
Convert GraphQL to mobx-state-tree models
Stars: ✭ 22 (+10%)
Mutual labels:  mobx
Favesound Mobx
🎶 A SoundCloud Client in React + MobX running in production. Live Demo and Source Code to explore React + MobX. Refactored from favesound-redux
Stars: ✭ 532 (+2560%)
Mutual labels:  mobx
React Mobx React Router Boilerplate
A simple boilerplate based on create-react-app and add mobx, react-router, linter, prettier and so on. 一个简单的 react 脚手架依赖于 create-react-app 新增了 mobx react-router,linter,prettier 等。
Stars: ✭ 12 (-40%)
Mutual labels:  mobx
Web Series
📚 现代 Web 开发语法基础与工程实践,涵盖 Web 开发基础、前端工程化、应用架构、性能与体验优化、混合开发、React 实践、Vue 实践、WebAssembly 等多方面。
Stars: ✭ 666 (+3230%)
Mutual labels:  mobx
Snippetstore
🎉 A snippet management app for developers 🚀
Stars: ✭ 762 (+3710%)
Mutual labels:  mobx
M Fe Boilerplates
Lucid & Futuristic Production Boilerplates For Frontend(Web) Apps, React/RN/Vue, with TypeScript(Optional), Webpack 4/Parcel, MobX/Redux 💫 多技术栈前端项目模板
Stars: ✭ 877 (+4285%)
Mutual labels:  mobx
Mobx React Connect
Connect react component, mobx store and css modules.
Stars: ✭ 13 (-35%)
Mutual labels:  mobx
Figmiro Plugin
Figma Integration with Miro (Plugin)
Stars: ✭ 23 (+15%)
Mutual labels:  mobx

React application example

This is an example of a desktop application using Electron, React and MobX.

This project is based on create-react-app, but has been ejected and further configured to suite its special needs.

Usage

Start dev server

npm run build:watch

Start electron application (development mode)

npm start

Run tests

npm test

Application

Folder structure

  • config
  • src
    • components
    • stores
    • services
    • queries
    • index.js (react app entry point)
  • test
  • index.js (electron app)

Architecture

This applications follows MobX conventions, in which everything is based on state and changes in the UI are reactions to state changes.

Components only receive stores via props and interact with the external world via those stores. Stores are globally available for components via a Provider.

Stores exposes a simple API to abstract components from outside world. Stores uses services to perform all actions that mutate state.

Services are responsible of retrieving/sending current state from/to persistance layer. Queries functions are used to communicate with persistance engine.

Queries encapsulates persistance specific domain language. They are kind of adapter.

Bootstrap

Bootstrap process is responsible of setting up all the needed engines for application to start. Currently there are 2 main ones:

  • Prepare DB migrations
  • Initialize routing

DB

IndexedDB is used as persistance engine. Dexie is the wrapper around it that the application uses to commmunitcate with DB storage.

Routing

Based on state

Authentication

Uses hashed passwords

I18n

In progress. Evaluating react-intl

Tests

Uses Electron and Mocha for testing. Enzyme is the framework election for testing components

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].