Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/levysantiago/polls-nlw-expert
- Owner: levysantiago
- Created: 2024-02-08T00:46:32.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2024-02-08T01:20:58.000Z (11 months ago)
- Last Synced: 2024-10-12T16:09:21.265Z (2 months ago)
- Topics: docker, fastify, nlw, nodejs, postgresql, prisma, pubsub, redis, rocketseat, typescript, websocket
- Language: TypeScript
- Homepage:
- Size: 11.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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 `