Coder Social home page Coder Social logo

freemember007 / bleeding-edge-react-sample-app.github.io Goto Github PK

View Code? Open in Web Editor NEW

This project forked from bleeding-edge-react-sample-app/bleeding-edge-react-sample-app.github.io

0.0 2.0 0.0 480 KB

This is a sample application that goes along with the backstop media book: React Edge 2nd edition.

Home Page: https://bleeding-edge-react-sample-app.github.io

HTML 1.57% JavaScript 92.55% Shell 0.29% CSS 5.58%

bleeding-edge-react-sample-app.github.io's Introduction

This is a sample application that goes along with the backstop media book: React Edge 2nd edition. It shows how to structure a large app so that it's highly maintainable.

It used [email protected] and react-router@1.

Getting started

Fetch the dependencies. If you don't have node/npm installed I recommend nvm.

npm install

To run the normal development server on localhost:8080 with the assets on localhost:8081:

./scripts/dev

To run the development pages on localhost:9080 and assets on localhost:9081:

./scripts/dev --dev-pages

There are some more options:

$ ./scripts/dev -h
Options:
  -h, --help          Show help                                        [boolean]
  --asset-url         where assets are to be served from
  --main-url          the main web server root
  --prod              do a development build (default)                 [boolean]
  --only-dev-server   only serve assets                                [boolean]
  --only-main-server  don't run dev-server                             [boolean]
  --dev-pages         instead of running the main app, run the individual
                      component pages

Development Pages

The development pages allow you to view individual components. Hot reloading is supported here, so you can very quickly make changes.

It allows you to see many variations of the component at once, and serves as documentation.

TODO: (picture of development pages)

Docs

Many directories have .md files in them. These serve as an explaination for you and any other developers joining the project. I recommend not deleting them, and adding more docs specific to your application in a similar way.

Atomic

Atoms are your low level components. Included is set of atoms that allow you to build most things. Unlike third party component libraries, these are your own to modify or remove. Atoms such as <Box> and <Header> allow you to avoid using dom components directly in higher level views, and encourage consistency across large applications.

Read more about this in the README.md in the atoms, molecules, organisms, and pages directories.

Flux

The flux library used here is reflux. It's simple but powerful.

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.