Skip to content

kbukum/Todo-Sample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TODO Sample React & Es6 & Babel & Webpack

Create TODO Project Step by Step

node && npm

node -v
v...
npm -v
...
documentation

create web project

mkdir todo-example
cd todo-example

Note : execute next commands in todo-example folder.

Babel Transformer

  • install babel core && cli
npm install --save-dev babel-cli babel-core
create .babelrc file in root folder.
ES6 Features
npm install --save-dev babel-preset-es2015 babel-preset-stage-0
React Feature
npm install --save-dev babel-preset-react

Webpack

Webpack 2 Beta
npm install --save-dev webpack@beta
Webpack Dev Server 2 Beta
npm install --save-dev webpack-dev-server@beta
Babel-Loader
  • install
npm install --save-dev babel-loader
Copy Webpack Plugin
  • install
npm install --save-dev copy-webpack-plugin

install robe-json-server

npm install --save-dev robe-json-server app-root-path

TODO Example

  • download project from github
  • install project
cd project folder
npm install
DEVELOPMENT MODE on JSON Server
  • 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
DEVELOPMENT MODE on Robe Server :
npm start-todo
PRODUCTION MODE on Robe Server :
npm build

Releases

No releases published

Packages

No packages published