petuomin / power-ui

power.futurice.com new UI

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

power-ui

Power.futurice.com new UI.

Installation

Make sure you are using a recent npm version, e.g. v2.13.x.

npm install

Running in development mode

If you work at Futurice with access to the private backend repository, follow the instructions below. Otherwise, for the general public, this repository serves only as an example of a Cycle.js frontend app.

Clone the backend repository (http://github.com/futurice/power) and follow its instructions to run it locally in your computer. It is expected to run at http://localhost:8000/api/v1/.

To continuously compile and lint:

npm run watch

Then open your browser at localhost:8080.

Before committing a new change, run the tests with

npm run test

Build Status

Deployment

  • Access comedius server via SSH.
  • cd to /opt/power-ui
  • git pull origin master (might need to do it as sudo)
  • npm install
  • npm run build
npm run build

Code Conventions

  • Capitalized functions are Cycle.js component functions, and their lowercase counterpart is the output of calling that function. E.g. PeoplePage is the component function, and peoplePage is the output, i.e., var peoplePage = PeoplePage(args);. These are not constructors.

About

power.futurice.com new UI

License:Apache License 2.0


Languages

Language:JavaScript 77.7%Language:CSS 21.6%Language:HTML 0.8%