React-surveyman is a survey building tool for the Surveyman project. The idea is to build a drag-and-drop web interface where users generate instances of the types in the SurveyMan language, and combine them to form surveys. The system will use visual cues, like shape and color, to indicate types and legal operations. Once completed, the surveys will be exported to json which can then be fed into the Java program to build a live survey.
Currently, it uses
- React 0.13.x with JSX;
- Reflux, a simple library built on Facebook's Flux ideas.
- Immutable.js for immutability in the stores;
- Babel for ES6/ES7 transpilation and linting;
- Webpack for the tooling.
Build and Run
In order to start the project locally -
$ git clone --recursive http://github.com/prakhar1989/react-surveyman $ npm install $ cd js/sub/surveyman.js && npm install && cd ../../../ $ npm run start # open localhost:8090 in your browser
The test suite as it stands is pretty sparse right now and is primarily built for purpose of testing the flux stores.
$ npm run test