Skip to content

Latest commit

 

History

History
19 lines (12 loc) · 386 Bytes

README.md

File metadata and controls

19 lines (12 loc) · 386 Bytes

Votes API

This is a simple Node.js API for voting and retrieving the current vote count.

Installation

  1. Clone this repository
  2. Install dependencies using npm install

Usage

  1. Start the server using npm start
  2. Send a POST request to /vote to cast votes
  3. Send a GET request to /votes to retrieve the current vote count

Dependencies

  • Node.js
  • Express.js