- Clone this repository
- Run
npm install && npm build - Run
npm start - Profit!
npm buildto compile the sources to ES5npm lintto runeslintundersrc/npm testto runmochatests over the server
Testing will also give the text output coverage via nyc.
Under config/, define your environment settings. Start the server
with NODE_ENV=<profile> set. There are default and test at the
moment.
- Node.JS because: yes
- MongoDB because:
- BSON has good interoperability with JS
- Mongo is pretty good on indexing things
- Querying statistic data in large indexed collections is pretty fast
- Aggregations support (althought not used here)
- Babel because:
- The compiler is very extensible and I write a lot of plugins for it
- I can make JS less painful
- Mocha + Chai because:
- Jest is one of the worst tools I've seen for testing (Mocha is love)
- Eslint + eslint-config-rung
- Eslint with the set of configs we've built for Rung. No
let, novar, no loops, no mutability, not that painful
- Eslint with the set of configs we've built for Rung. No
However, although we've used mongoose is definitely not the way to go.
Sorry, people, everything is terrible.