supnate / rekit
- воскресенье, 11 февраля 2018 г. в 03:17:51
Toolkit for building scalable web applications with React, Redux and React-router
🎉 🎉 🎉 Introducing Rekit Studio: a real IDE for React and Redux development
Rekit is a toolkit for building scalable web applications with React, Redux and React-router. It's an all-in-one solution for creating modern React apps.
It helps you focus on business logic rather than dealing with massive libraries, patterns, configurations etc.
Rekit creates apps using an opinionated folder and code structure. It's designed to be scalable, testable and maintainable by using feature oriented architecture, one action per file pattern. This ensures application logic is well grouped and decoupled.
Besides creating apps, Rekit provides powerful tools for managing the project:
Below is a quick demo video of how Rekit works:
The demo contains two parts, which are examples in Redux's official website:
You can also see the live demo at: http://demo.rekit.org
npm install -g rekit
This will install a global command rekit
to the system. Rekit is developed and tested on npm 3+ and node 6+, so this is the prerequisite for using Rekit.
Create a new application
rekit create <app-name> [--sass] [--clean]
This will create a new app named app-name
in the current directory. The --sass
flag allows to use sass instead of default less as the CSS transpiler. The --clean
flag is used to create a clean app without any sample code. After creating the app, you need to install dependencies and start the dev server:
cd app-name
npm install
npm start
It then starts three lightweight express servers by default:
To change the ports dev-servers running on, edit the rekit
section in package.json
:
{
...
"rekit": {
"devPort": 6075,
"studioPort": 6076,
"buildPort": 6077,
...
}
...
}
This repo contains multiple packages managed by yarn workspaces.
Packages | Description |
---|---|
rekit-core | Provide core APIs such as create components, rename actions, etc... |
rekit | The CLI wrapper of rekit-core, and create apps by clone repo from rekit-boilerplate |
rekit-studio | Dedicated IDE for Rekit development, uses rekit-core to manage project too. |
rekit-plugin-redux-saga | Use redux-saga instead of redux-thunk for async actions. |
rekit-plugin-selector | Support selectors by Rekit cli. |
MIT