martin-corevski / react-app

React 16 app with Webpack 4, axios and react router 4 setup

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

React app

React 16 app setup with Webpack 4, axios and react router 4. More information on the setup project and wiki. For the http requests basics project and wiki. For routing basics project and wiki


Install dependencies

cd path-to-your-project
npm install

Additional install

npm i -g ntl
  • By running ntl you can choose which script to run. For example start, build, build:prod and watch will be some of the choices. All of these scripts are in the package.json file in the scripts object.
  • Command to start ntl and choose an option
ntl

Without ntl

If you don't want to use ntl you can use the npm run command with the chosen script, examples:

  • For development bundle
npm run build
  • For production ready bundle
npm run build:prod
  • For development server
npm start
  • For Webpack watch
npm run watch
  • For testing with jest
npm run test

License

MIT

About

React 16 app with Webpack 4, axios and react router 4 setup

License:MIT License


Languages

Language:JavaScript 98.3%Language:HTML 1.2%Language:CSS 0.4%