Skip to content

A scalable realtime voting application using websockets and redis.

Notifications You must be signed in to change notification settings

Heismanish/scalable-voting-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Scalable Realtime Voting Application:

DEMO: Link T0 YT

Starting the client(navigate to /client):

First, navigate to the client direcotory and run the development server:

  1. Add redis credentials( from upstash ) in an .env file as:
UPSTASH_REDIS_REST_URL=""
UPSTASH_REDIS_REST_TOKEN=""
  1. Install the dependencies and modules:
npm install
  1. Start the nextjs project
npm run dev

Starting the server(navigate to /server):

  1. Add redis credentials( from upstash ) in an .env file as:
REDIS_CONNECTION_STRING =""
  1. Install the dependencies and modules:
npm install
  1. Start the server (assuming you have typescript compiler installed locally )
tsc
nodemon dist/index.js

Perview:

Homepage VotingPage

Resources:

To render votes : WorldCloud from airbnb

About

A scalable realtime voting application using websockets and redis.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published