Frontend for brain.dmp platform.
![Build Status](http://ci.alt-l.io/buildStatus/icon?job=Build develop)
brain.dmp is a knowledge distribution/notepad platform. This frontend is based on node.js and the React view library.
This brain.dmp frontend will be developed backend agnostic. It communicates with the backend via RESTful HTTP calls.
The folder docs/ contains several specification files.
npm install
npm start
Runs the node express server.js and webpack-dev-server. For development, use http://localhost:4711.
npm test
Runs mocha tests found in test/
npm run dist
npm run dist:dev
Webpacks the src code and copies the server.js to dist dir.
Then start server.js, it will listen on port 4712 (by default). server.js requires express and request.
There are two nodejs express servers in this project: server.js and server-backend.js. They can be run using several environment variables.
Command | Purpose | Default |
---|---|---|
APIBASEURI | The uri of the REST web api service to talk to. | http://localhost:4713 (server-backend.js backend mock) |
PORT | The port to run on. | 4712 |
Command | Purpose | Default |
---|---|---|
BACKEND_PORT | The port to run on. | 4713 |