React Redux Starter - Demo
- A small React Redux starter that includes an API call to retrieve a list of countries and displays in a table. Includes a navigation bar, and a loading spinner.
- Demo: https://xphong.github.io/simple-react-redux-starter/
- Example project using this starter: https://github.com/xphong/marvel-app
- Guide/Documentation: http://www.phonghuynh.ca/simple-react-redux-starter-guide-documentation/
Documentation - Guide
- ECMAScript 2015 is an ECMAScript standard that was ratified in June 2015. Babel is a compiler that transforms your ES2015 code into JavaScript so that the browser can read it. http://babeljs.io/
- React is a a JavaScript library for building user interfaces. https://facebook.github.io/react/
- Redux is a predictable state container for JavaScript apps. http://redux.js.org/
- Webpack is a module bundler which compacts your JavaScript files into separate modules allowing module loading throughout your application. http://webpack.github.io/docs/what-is-webpack.html
- Yarn is a dependency manager built on top of npm allowing for consistent and reliable versioning using a lockfile. https://yarnpkg.com/
Clone this repository:
git clone https://github.com/xphong/simple-react-redux-starter.git
- Install required dependencies:
npm install yarn -g
yarn
-
Run development server (port 3000):
npm run dev
-
Run production server:
npm run prod
-
Deploy production build:
npm run build
-
Browser:
open http://localhost:3000/
├── README.md
├── index.html
├── package.json
├── server.js
├── webpack.config.dev.js
├── webpack.config.prod.js
├── yarn.lock
├── src/
| ├── actions
| | ├── CountriesActions.js
| ├── components
| | ├── Countries.js
| | ├── Country.js
| | ├── Navbar.js
| | └── Spinner.js
| ├── constants
| | └── ActionTypes.js
| ├── containers
| | ├── About.js
| | ├── App.js
| | ├── Countries.js
| | └── DevTools.js
| ├── reducers
| | ├── countries.js
| | └── index.js
| ├── store
| | ├── configureStore.dev.js
| | ├── configureStore.prod.js
| | └── configureStore.js
| ├── styles
| | └── main.scss
| ├── index.js
| ├── routes.js
├── .babelrc
├── .eslintignore
├── .eslintrc
└── .gitignore
-
Toggle React Dev Tools: CTRL + H
-
Based on Simple Redux Boilerplate