0.21.17 • Published 8 years ago

re-app v0.21.17

Weekly downloads
70
License
MIT
Repository
github
Last release
8 years ago

re-app

npm Build Status

Common react components, redux, react-router, redux-router, redux-saga boilerplate and helper codebase

Installation

Make sure you are using at least npm@3 and node@4.

npm install --save-dev re-app

Creating project from scratch with re-app-builder

Make sure you are using at least npm@3 and node@4.

cd into empty project directory and run these commands

npm init # initialize your project as npm package
npm i --save-dev re-app-builder # install re-app-builder
npm i --save-dev re-app # install re-app

Create public/index.html

<!DOCTYPE html>
<html>
    <head></head>
    <body>
        <div id="root"></div>
        <script src="/index.js"></script>
    </body>
</html>

Create src/index.js, for example:

/* eslint-disable */
import React from 'react';
import ReactDOM from 'react-dom';

function *generator() { // generator functions supported

}

class App extends React.Component {
    render() {
        return (
            <strong>cool</strong> // jsx supported
        );
    }
}

ReactDOM.render(<App/>, document.getElementById('root'));

Merge following into your package.json (add re-app-builder script)

{"scripts": {"ab": "node ./node_modules/re-app-builder"}}

Run

npm run ab dev

Look at http://127.0.0.1:8080

Development

To develop re-app and/or examples, clone this repository.

To build re-app one time, run

npm run build

To watch changes in sources and build on the fly run

npm run build:watch

Resulting CommonJS build files are located in lib directory.

To develop examples, run both commands simultaneously

npm run build:watch # builds library and watches changes
npm run ab dev # builds examples

Website featuring re-app examples will then be served on http://127.0.0.1:8080

Testing

Tests are stored in test folder. Run them by executing npm run test. You can also run only subset of tests by running npm run test:file -- --grep "test description".

Proposed library structure

utils

Here will be list of utility functions

components

Here will be list of pure components

containers

Here will be list of container components (aka smart components)

decorators

Here will be list of decorators providing common functionality

modules

Module is a bundle of related redux actions, redux reducer, redux-sagas and selector functions. A module can depend on selector functions and actions of another module.

api

Keeps api service

auth

Keeps authentication context of application

routing

Handles routing actions and state

flash

Handles flash messages

modals

Handles modal windows

entityDescriptors

Keeps entity schemas and normalizr schemas (here called "mappings" for separation)

entityStorage

Handles entity data

entityIndexes

Handles lists of entities

entityEditors

Handles entity editors

Dependency tree of internal modules

Dependency root is a module with no dependencies. A module depends on every module on oriented paths leading to dependency roots. There should be no cycles. See the proposed tree here

License

This project is licensed under the terms of the MIT license. See LICENSE.md.

0.22.0-dev.32

8 years ago

0.22.0-dev.31

8 years ago

0.22.0-dev.30

8 years ago

0.22.0-dev.29

8 years ago

0.22.0-dev.28

8 years ago

0.22.0-dev.27

8 years ago

0.22.0-dev.26

8 years ago

0.22.0-dev.25

8 years ago

0.22.0-dev.24

8 years ago

0.22.0-dev.23

8 years ago

0.22.0-dev.22

8 years ago

0.22.0-dev.21

8 years ago

0.22.0-dev.20

8 years ago

0.22.0-dev.19

8 years ago

0.22.0-dev.18

8 years ago

0.22.0-dev.17

8 years ago

0.22.0-dev.16

8 years ago

0.22.0-dev.15

8 years ago

0.22.0-dev.14

8 years ago

0.22.0-dev.12

8 years ago

0.22.0-dev.10

8 years ago

0.22.0-dev.9

8 years ago

0.22.0-dev.8

8 years ago

0.22.0-dev.7

8 years ago

0.22.0-dev.6

8 years ago

0.22.0-dev.5

8 years ago

0.22.0-dev.4

8 years ago

0.22.0-dev.3

8 years ago

0.22.0-dev.2

8 years ago

0.22.0-dev.1

8 years ago

0.21.17

8 years ago

0.21.16

8 years ago

0.21.14

8 years ago

0.21.13

8 years ago

0.21.12

8 years ago

0.21.11

8 years ago

0.21.10

8 years ago

0.21.9

8 years ago

0.21.8

8 years ago

0.21.7

8 years ago

0.21.6

8 years ago

0.21.5

8 years ago

0.20.0

8 years ago

0.13.8

8 years ago

0.13.7

8 years ago

0.13.6

8 years ago

0.13.5

8 years ago

0.13.4

8 years ago

0.13.3

8 years ago

0.13.2

8 years ago

0.13.1

8 years ago

0.13.0

8 years ago

0.12.1

8 years ago

0.12.0

8 years ago

0.11.0

8 years ago

0.10.0

8 years ago

0.9.0

8 years ago

0.7.18

8 years ago

0.6.18

8 years ago

0.6.17

8 years ago

0.6.16

8 years ago

0.2.5

8 years ago

0.0.3

8 years ago

0.0.2

8 years ago

0.0.1

8 years ago