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

Sutharsan/vote-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Learning project for node.js

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published