Skip to content
Yu Yamanaka edited this page Oct 5, 2015 · 5 revisions

How to setup an environment for development

  1. Install nodejs on your OS (~> v0.12)

  2. Clone this repository

    git clone git@github.com:urelx/reactive-wikipedia-reader.git
    cd reactive-wikipedia-reader
    
  3. Install required tools and packages by npm command

    npm install
    
  4. You can start a server for development

    node_modules/webpack-dev-server/bin/webpack-dev-server.js --hot --progress --colors
    
  5. Access to http://localhost:8080/ by your browser

How to build and deploy to your production

  1. Build (with NODE_ENV)

    NODE_ENV=production npm run build
    
    • You can check the application on your machine with builtin http-server

      NODE_ENV=production npm start
      
  2. Copy generated files under the public directory to your web server (or CDN)

    $ ls ./public/
    assets/  favicon.ico  index.html
    $ rsync -avhze ssh ./public/ deploy@example.com:/path/to/html/