diegohaz/arc
Fork: 292 Star: 2916 (更新于 2024-11-01 12:26:30)
license: 暂无
Language: JavaScript .
React starter kit based on Atomic Design
最后发布版本: v1.0.0 ( 2017-05-07 06:15:27)
ARc (Atomic React) is a React starter kit based on the Atomic Design methodology. It's progressive, which means that you can start with the basic boilerplate and try the other features when you are comfortable.
If you find this useful, please check out Reakit, a toolkit for building composable UI with React.
Branches
-
master
The basic stack with React, Webpack, react-router and Jest.
-
redux
(compare)Master plus redux, redux-saga and redux-form.
-
Redux plus Server Side Renderingredux-ssr
(compare)
-
-
Why
I've been a web developer for the past 14 years and after dealing with IE vs. Netscape wars, <table>
layouts and flash websites, I can say that we are now living in the best moment in web development. Web components are awesome and React makes it better.
React encourages you to create very small and pure components. However, as your project grows, you will have an increasingly complex components folder. At some point, this will be really huge and hard to maintain.
I had a React project with more than 100 components in the components
folder. The first approach I tried to organize it was separating the components by domain (described here), but I realized that most of my components didn't belong to any domain, but were shared. This meant that my problems just moved to the commons
folder.
The Atomic Design approach comes handy to solve this problem because it considers the reusability through composition, which is actually what React is. You will have your minimal/stylish components in one folder, pages in another and so on.
Setup
1. Get the source code
Just clone one of the ARc branches:
$ git clone -b master https://github.com/diegohaz/arc my-app
$ cd my-app
You will probably want to remove ARc git history and start a brand new repository:
$ rm -rf .git
$ git init
2. Install dependencies
$ npm install
3. Run the app
$ npm run dev
It will start the development server with HMR on top of it.
http://localhost:3000 — Development server
http://localhost:3001 — Webpack assets server (forredux-ssr
only)
Now you can open http://localhost:3000 in browser and start developing.
Contributing
When submitting an issue, use the following patterns in the title for better understanding:
[v0.3.1-redux] Something wrong is not right # the v0.3.1 release of the redux branch
[redux] Something wrong is not right # the actual code of the redux branch
Something wrong is right # general, related to master or not directly related to any branch
PRs are very appreciated. For bugs/features consider creating an issue before sending a PR.
License
MIT © Diego Haz
最近版本更新:(数据更新于 2024-09-07 11:50:00)
2017-05-07 06:15:27 v1.0.0
2017-02-20 10:25:26 v0.7.0
2017-01-20 22:29:04 v0.6.0
2017-01-04 01:08:35 v0.5.0-fullstack
2017-01-04 01:07:44 v0.5.0-universal-redux
2017-01-04 01:03:50 v0.5.0-redux
2017-01-04 00:55:56 v0.5.0
2016-12-16 10:05:19 v0.4.0-fullstack
2016-12-16 10:04:34 v0.4.0-universal-redux
2016-12-16 10:01:14 v0.4.0-redux
主题(topics):
atomic-design, boilerplate, css-in-js, isomorphic, jest, react, react-router, redux, redux-saga, starter-kit, storybook, styled-components, universal
diegohaz/arc同语言 JavaScript最近更新仓库
2024-11-12 11:08:54 emberjs/ember.js
2024-11-12 04:44:31 nodejs/node
2024-11-11 12:06:37 gethomepage/homepage
2024-11-10 21:29:01 Number178/kikoeru-express
2024-11-09 19:30:14 vernesong/OpenClash
2024-11-05 19:13:47 jerryc127/hexo-theme-butterfly