Skip to content

Mitgenosse/brain.dmp-frontend

Repository files navigation

brain.dmp-frontend

Frontend for brain.dmp platform.

![Build Status](http://ci.alt-l.io/buildStatus/icon?job=Build develop)

Trello Board

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.

Documentation

The folder docs/ contains several specification files.

Run it

Development

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/

Dist

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.

Environment variables

There are two nodejs express servers in this project: server.js and server-backend.js. They can be run using several environment variables.

server.js

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

server-backend.js

Command Purpose Default
BACKEND_PORT The port to run on. 4713

Releases

No releases published

Packages

No packages published