Thursday, December 22, 2016

Linux - Convenience Settings

To make directory color and VIM comment color visible in dark background
.vimrc:  set bg=dark
.dir_colors:  DIR 01;36

To make VIM tab space = 4 instead of 8
.vimrc:  set tabstop=4

How to create React apps with "Create-React-App"?

https://github.com/facebookincubator/create-react-app

Installation
npm install -g create-react-app


Create app

create-react-app my-app
cd my-app/

Start Server to see your app
npm start

Then open http://localhost:3000/ to see your app.


Deployment

When you’re ready to deploy to production, create a minified bundle with 

npm run build

Inside the directory

Inside that directory, you can run several commands:

  npm start
    Starts the development server.

  npm run build
    Bundles the app into static files for production.

  npm test
    Starts the test runner.

  npm run eject
    Removes this tool and copies build dependencies, configuration files
    and scripts into the app directory. If you do this, you can’t go back!

We suggest that you begin by typing:

  cd MyReactApp1
  npm start