Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/levysantiago/polls-nlw-expert

Create polls and allow users to vote on them.
https://github.com/levysantiago/polls-nlw-expert

docker fastify nlw nodejs postgresql prisma pubsub redis rocketseat typescript websocket

Last synced: about 1 month ago
JSON representation

Create polls and allow users to vote on them.

Awesome Lists containing this project

README

        

# Polls

This project was created during the [Rocketseat](https://www.rocketseat.com.br/) Next Level Week event, Expert edition. It allows to create polls and vote on them. These polls are saved on a PostgreSQL database, for that, the application uses the Prisma ORM. Also, the API has an Websocket connection where every time a user votes on the poll, the API sends a message on this connection including the updates on the vote of a single poll. The polls vote ranking are managed with redis.

# Getting Started

## Versions

Node v20.11.0

## Installations

```bash
npm install
```

## Environment Variables

Create a new `.env` file inside the project root, and define your database URL using the content below and replacing the `