joyent-portal/frontend
Sérgio Ramos d6835361bc ignore frontend test (for now) 2016-12-06 11:28:30 +00:00
..
etc containerpilot: updating names of services 2016-11-01 16:17:49 +00:00
locales internationalization suppport 2016-10-20 20:42:39 +01:00
scripts lint frontend 2016-10-24 14:11:50 +01:00
server backend: Moving backend into frontend 2016-10-24 16:31:05 +01:00
src use existing aliases in the requires 2016-12-05 20:28:10 +00:00
static add the frontend locales folder 2016-10-24 15:42:06 +01:00
test ignore frontend test (for now) 2016-12-06 11:28:30 +00:00
webpack ignore css in test 2016-12-06 11:17:38 +00:00
.babelrc circleci: tests output usable files for circleci 2016-10-27 16:42:56 +01:00
.eslintignore lint frontend 2016-10-24 14:11:50 +01:00
.eslintrc remove redundant eslint rule 2016-12-05 20:06:22 +00:00
.tern-project bootstrap frontend 2016-10-20 10:58:19 +01:00
Dockerfile backend: Moving backend into frontend 2016-10-24 16:31:05 +01:00
Makefile frontend compile depends on ui 2016-12-06 10:12:25 +00:00
README.md docs: adding container badge for frontend 2016-11-04 12:19:15 +00:00
package.json ignore css in test 2016-12-06 11:17:38 +00:00
yarn.lock ignore css in test 2016-12-06 11:17:38 +00:00

README.md

Docker Repository on Quay

Joyent Dashboard Frontend

start

npm run start

test

npm run test

structure

.
├── src
│   ├── containers
│   ├── index.js
│   ├── root.js
│   └── state
│       ├── actions.js
│       ├── reducers
│       ├── store.js
│       └── thunks
├── static
├── locales
├── scripts
├── test
├── webpack
├── .babelrc
└── .eslintrc
  • src/index.js: Renders src/root.js and bootstraps hot module reloading.
  • src/root.js: The main component that wraps react-redux, react-router and react-hot-loader.
  • src/state/store.js: Exports a function that creates a redux store instance with all the middlewares and reducers configured.
  • src/state/actions.js: Not only exports all the actions available (declared in the file), but also goes through all the thunks and exports them.
  • src/state/thunks: Directory to place thunks so that actions or reducers don't get too confusing.
  • src/state/reducers: Each file here represents a reducer scope. So, state.app will be controlled in reducers/app.js.
  • locales: Translation definitions for each locale supported.
  • scripts: Utility scripts (e.g. building localizations).
  • test: Self explanatory.
  • webpack: Webpack configuration for multiple enviroments. Development configuration includes a dev-server and hot module replacement support.
  • .babelrc: This babel configuration outputs ES2015 code, so it will produce code only for modern browsers. Also, async/await is supported.
  • .eslintrc:ESLint configuration. It's basically semistandard with space-before-function-paren probited;