An in-memory and performatic vote API with Node/Express and LokiJS
Clone this repository and install nodeJS...
Attention! If you are running on Ubuntu SO, please, read this article for clear any doubts!
...and them grunt-cli package (NPM) globally:
npm install -g grunt-cli
Use this commands on upon your cloned folder:
npm install
Use the folowing steps to start locally, build or test your applicattion:
npm start
The server will start at http://localhost:8080. Take a look if this port not it use by other proccess. You can test api on Postman using the vote-api.json.postman_collection present on root of this repository.
Only api request tests (with Mocha, should and Supertest)
grunt
Benchmark (performance) test
grunt benchmark
The test result will be generated at output_folder in HTML format containing a graph and information about the benchmark test. Extra configurations can to be easily do inside config.js