Git Product home page Git Product logo

vote-api's Introduction

vote-api Build Status Built with Grunt

An in-memory and performatic vote API with Node/Express and LokiJS

Getting Started

1. Setting Up environment

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

2. Download node modules

Use this commands on upon your cloned folder:

npm install

You are almost ready!

Use the folowing steps to start locally, build or test your applicattion:

Start api server

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.

Test application

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

vote-api's People

Contributors

sciotta avatar

Stargazers

sebastian correa  avatar Fabio Dias Rollo avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.