- download from https://nodejs.org/en/download/
- install node && npm
- check node && npm
node -v
v...
npm -v
...
- Node Website: https://nodejs.org
- NPM Repository : https://www.npmjs.com/
- Npm usage : https://docs.npmjs.com/cli/install
mkdir todo-example
cd todo-example
Note : execute next commands in todo-example folder.
- install babel core && cli
npm install --save-dev babel-cli babel-core
- ES6 Documentations : http://es6-features.org/
- ES6 import export -> http://www.2ality.com/2014/09/es6-modules-final.html
- add es6 features to babel transformer
npm install --save-dev babel-preset-es2015 babel-preset-stage-0
- documentation : https://facebook.github.io/react/docs/react-api.html
- Examples : https://toddmotto.com/react-create-class-versus-component/
- add react feature to babel transformer
npm install --save-dev babel-preset-react
- https://blog.madewithenvy.com/getting-started-with-webpack-2-ed2b86c68783#.j474cp9nv
- install webpack 2 beta
npm install --save-dev webpack@beta
- https://webpack.github.io/docs/webpack-dev-server.html
- install webpack 2 beta
npm install --save-dev webpack-dev-server@beta
- install
npm install --save-dev babel-loader
- install
npm install --save-dev copy-webpack-plugin
npm install --save-dev robe-json-server app-root-path
- download project from github
- install project
cd project folder
npm install
- You can find
start
script in package.json file -> scripts tag. - Development Mode is working on robe-json-server.
- robe-json-server is a mock server and it serves
config/data/db.json
as database. - more information about the json-server.
- start development mode.
npm start
- You can find
start-todo
script in package.json file -> scripts tag. - Development Mode is working on robe-todo-server.
- download todo-server from https://github.com/kbukum/robe-todo-server
- Start Todo Server : todo dev
- start development mode.
npm start-todo
- You can find
build
script in package.json file -> scripts tag. - Production Mode is working on robe-todo-server.
- download todo-server from https://github.com/kbukum/robe-todo-server
- build ui code
npm build