Git Product home page Git Product logo

react-redux-rest-example's Introduction

Loosely based Built upon @davezuko's kit in combination with the official Redux docs.

Mock API

For development purposes, a mock REST API server can be run using json-server.

Install it with npm install -g json-server

In a new terminal, run it with json-server -p 4000 db.json where db.json is the file with mock data. You can view the json-server page at http://localhost:4000, but it isn't really necessary.

Getting Started

npm start

Runs the webpack build system with webpack-dev-server (http://localhost:3000)

npm run dev:nw

Same as npm run start but opens the debug tools in a new window.

Note: You need to enable popups in Chrome or you will get an error.

npm run compile

Runs the webpack build system with the current NODE_ENV and compiles the application to the ./dist directory. Production builds will fail on eslint errors (but not on warnings).

Structure

.
├── bin                      # Build/Start scripts
├── build                    # All build-related configuration
│   ├── webpack              # Environment-specific configuration files for Webpack
├── config                   # Project configuration settings
├── src                      # Application source code
   ├── components           # Generic React Components (generally Dumb components)
   ├── containers           # Components that provide context (e.g. Redux Providers)
   ├── layouts              # Components that dictate major page structure
   ├── reducers             # Redux reducers
   ├── routes               # Application route definitions
   ├── stores               # Redux store configuration
   ├── utils                # Generic utilities
   ├── views                # Components that live at a route
   └── index.js             # Application bootstrap and rendering

react-redux-rest-example's People

Contributors

tayiorbeii avatar wyze avatar

Stargazers

Umesh Kumar Mahato avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.