0.3.24 • Published 6 years ago

wfp-ui-reactjs v0.3.24

Weekly downloads
3
License
MIT
Repository
-
Last release
6 years ago

WSS

Quick primer

WSS (WFP Self Service) is a mixed Django / React.JS application. Each page is served by Django and it's a container for plain React.JS components. Data binding is binding directly by React and the Django server will act as Rest API.

Requirements

In order for the application to run, requirements are:

  • Node.JS, along with its package manager.
  • Run brew install node
  • Python, along with its package manager PIP. It should be already installed.
  • Install Django
  • Run python -c "import django; print(django.get_version())"
  • Run sudo pip install Django

Inside the project folder

  • Checkout the project from github
  • Run git clone https://github.com/wfp/wss-ui.git
  • *Install npm dependencies
  • Run npm install
  • Install webpack
  • Run npm install --save-dev webpack
  • Install MkVirtualEnv
  • Run sudo pip install virtualenvwrapper
  • Run ./mkvirtualenv wssdemo
  • Create the user configuration file
  • In /settings, duplicate _sal.py (posgres) or _aetheros.py (sqlite) and rename it with your OS username
  • Setup configuration files
  • Run pip install -r src/requirements/install.any.pip
  • Run pip install -r src/requirements/develop.pip
  • Run pip install -r src/requirements/django.pip
  • Setup DB, choose whatever user, eg: guest 123
  • Run ./manage.py migrate
  • Run ./manage.py createsuperuser

Library development

  • Run npm run build
  • Run sudo npm link
  • Run cd demo && npm link wfp-wss-ui-react && npm run build
  • Run python manage.py runserver

Documentation

WFP UI documentation can be found here: UI-DOC.

Deprecated: How to build and run the static prototype with mocked data

It won't be necessary by the 1st of September, static html+CSS was used for quickly prototype purposes.

  • Run gulp serve to preview and watch for changes
  • Run bower install --save <package> to install frontend dependencies
  • Run gulp serve:test to run the tests in the browser
  • Run gulp to build the webapp for production
  • Run gulp serve:dist to preview the production build

Library development

###Setup

  1. Install Facebook Watchman: https://facebook.github.io/watchman/docs/install.html
  2. Run the following:
  • sudo npm install -g wml
  • npm install
  • wml add lib/ demo/node_modules/wfp-ui-reactjs/lib/ -cp package.json demo/node_modules/wfp-ui-reactjs/
  • wml start

    In another terminal

  • cd demo

  • npm install

###Development

Run:

  • npm run build
  • cd demo
  • npm run build
  • python manage.py runserver

Documentation

WFP UI documentation can be found here: UI-DOC.

0.3.24

6 years ago

0.3.23

6 years ago

0.3.22-alpha-6

6 years ago

0.3.22-alpha-5

6 years ago

0.3.22-alpha-4

6 years ago

0.3.22-alpha-3

6 years ago

0.3.22-alpha-2

6 years ago

0.3.22-alpha-1

6 years ago

0.3.22

6 years ago

0.3.21

6 years ago

0.3.20

6 years ago

0.3.19

6 years ago

0.3.18

6 years ago

0.3.17

6 years ago

0.3.16

6 years ago

0.3.15

6 years ago

0.3.14

6 years ago

0.3.13

6 years ago

0.3.12

6 years ago

0.3.11

6 years ago

0.3.10

6 years ago

0.3.9

6 years ago

0.3.8

6 years ago

0.3.7

6 years ago

0.3.6

6 years ago

0.3.5

6 years ago

0.3.4

6 years ago

0.3.3

6 years ago

0.3.2

6 years ago

0.3.1

6 years ago

0.3.0

6 years ago

0.2.21

6 years ago

0.2.20

6 years ago

0.2.19

6 years ago

0.2.18

6 years ago

0.2.17

6 years ago

0.2.16

6 years ago

0.2.15

6 years ago

0.2.14

6 years ago

0.2.13

6 years ago

0.2.12

6 years ago

0.2.12-b

6 years ago

0.2.11

6 years ago

0.2.10

6 years ago

0.2.9

6 years ago

0.2.8

6 years ago

0.2.7

6 years ago

0.2.6

6 years ago

0.2.5

6 years ago

0.2.4

6 years ago

0.2.3

6 years ago

0.2.2

6 years ago

0.2.1

6 years ago

0.2.0

6 years ago

0.1.12

6 years ago

0.1.11

6 years ago

0.1.10

6 years ago

0.1.9

6 years ago

0.1.8

6 years ago

0.1.7

6 years ago

0.1.6

6 years ago

0.1.5

6 years ago

0.1.4

6 years ago

0.1.3

6 years ago

0.1.2

6 years ago

0.1.1

6 years ago

0.1.0

7 years ago

0.0.25

7 years ago

0.0.24

7 years ago

0.0.23

7 years ago

0.0.22

7 years ago

0.0.21

7 years ago

0.0.20

7 years ago

0.0.19

7 years ago

0.0.18

7 years ago

0.0.17

7 years ago

0.0.16

7 years ago

0.0.15

7 years ago

0.0.14

7 years ago

0.0.13

7 years ago

0.0.12

7 years ago

0.0.11

7 years ago

0.0.10

7 years ago

0.0.9

7 years ago

0.0.8

7 years ago

0.0.7

7 years ago

0.0.6

7 years ago

0.0.5-beta

7 years ago

0.0.4

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago