Skip to content
This repository has been archived by the owner on Oct 4, 2023. It is now read-only.

Latest commit

 

History

History
25 lines (20 loc) · 590 Bytes

readme.md

File metadata and controls

25 lines (20 loc) · 590 Bytes

Headless voting application.

Installation

  • Build: npm run build
  • Run npm run serve

Configuration

Override the default configuration using a .env file in the application root. See src/config for variables to set.

Endpoints

  • Cast a vote POST /vote/{id}/{[1..5]} Returns: Average vote data
  • Get the vote average GET /vote/{id} Returns: Vote count and average vote data
  • Get vote statistics GET /vote/{id}/stats Returns: Average, vote count and vote count per option

All return data in json format.

Development

  • Start development: npm run start