Internal projects for introducing backenders to javascript
If you start your adventure with front-end development from scratch you may want to read those additional resources:
Then:
- First time do
npm install
- To get the program running
npm start
- To start tests
npm test
- Use
npm clean
to get rid of old files - To validate your project for correctness use
npm lint
- Create a distributable version with
npm dist
For more aliases check npm
docs and package.json
in the repo.
- Creating components: React.js 5 minute primer
- Handling state: Redux 5 minute primer
- Building modules: Webpack
- Supporting ES2015: Babel
Project was generated with Yeoman
cfg
: various configuration filescoverage
: generated test coverage reportsdist
: for generated distributionssrc
: source codeactions
: directory to put your flux actions. Actions are JS objects describing (marking and holding payload) an event that did happen in the app causing an update to storescomponents
: UI components written with jsx and React go hereconfig
: configuration files for UIcontainers
: folder for top level components, they describe how things workreducers
: place for redux reducers.reducer, a pure function with (state, action) => state signature. It describes how an action transforms the state into the next state.
sources
: folder for flux datasourcesstores
: for flux stores holding application state as an JS object. Store'sAPI is { subscribe, dispatch, getState }
styles
: for regular CSS
test
: test source code root
yo react-webpack-redux:reducer my/namespaced/reducers/name
yo react-webpack-redux:action my/namespaced/actions/name
yo react-webpack-redux:component my/namespaced/components/name
yo react-webpack-redux:container my/namespaced/container/Name
Week 1
: Added readme
Developed by Scalac