GithubHelp home page GithubHelp logo

rocketseat-project-polls's Introduction

<h1 align="center">Rocketseat: Polls</h1>

<p align="center">
  <img alt="logo" src=".github/logo.webp" width="20%">
</p>

This project is the development of an API that serves to store results from a poll and that returns results in real time using the necessary means for this, here using databases, ORMs, some standards and validations so that the data can be checked and validated so that they are persisted.

<p align="center">
  <a href="#-tecnologias">Technologies</a>&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;
  <a href="#-projeto">Project</a>&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;
  <a href="#-layout">Layout</a>&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;
  <a href="#-license">License</a>
</p>

## ๐Ÿ”— Links
[![Instagram](https://img.shields.io/badge/Instagram-%23E4405F.svg?style=for-the-badge&logo=Instagram&logoColor=white)](https://instagram.com/davidalmeidadev)
[![LinkedIn](https://img.shields.io/badge/linkedin-%230077B5.svg?style=for-the-badge&logo=linkedin&logoColor=white)](https://instagram.com/davidalmeidadev)
[![Brave](https://img.shields.io/badge/Portfolio-yellow?style=for-the-badge&logo=Brave&logoColor=white)](https://react-project-portfolio.vercel.app/)
[![Licence](https://img.shields.io/github/license/Ileriayo/markdown-badges?style=for-the-badge)](./LICENSE)

## ๐Ÿš€ Tecnologies

This project was developed with the following technologies:

- JS ES6+
- [Node e Yarn](https://nodejs.org/)
- [Prisma](https://www.prisma.io/docs)
- [Typescript](https://www.typescriptlang.org/docs/)
- [Redis](https://redis.io/docs/)
- [PostgreSQL](https://www.postgresql.org/docs/)
- [Docker](https://docs.docker.com/)
- [Fastify](https://fastify.dev/docs/latest/)
- [Zod](https://zod.dev/)

## ๐Ÿ’ป Project

The project is an API developed with the Fastify framework, known for its efficiency and speed of execution. It utilizes the "@fastify/cookie" and "@fastify/websocket" dependencies to provide cookie management capabilities and support real-time communication via websockets, respectively. Additionally, it makes use of Prisma ORM (@prisma/client) to interact with the database and store poll data efficiently. The project also includes the use of Redis (ioredis) to manage data caching and improve API performance, and Zod for data validation. In the development environment, tools such as TypeScript, ESLint with configuration for TypeScript and Prettier are used to ensure code quality and consistency.

The API serves as a real-time polling platform, allowing users to vote and track results instantly. Websockets are used to provide real-time updates on votes, ensuring an interactive experience for users. Using Prisma ORM, the API stores poll data efficiently in the database, providing adequate scalability to handle large volumes of votes. Using Redis for cache management helps optimize API performance while reducing the load on the database. With a solid foundation of development tools such as TypeScript and ESLint, the project maintains clean, typed, and bug-free code, ensuring an efficient and reliable development experience.

## ๐Ÿก Get started

Installing project dependencies

```sh
yarn install
```

Application initialization

```sh
yarn dev
```

Containers initialization

```sh
docker compose up -d
```

## ๐Ÿ”– Layout

You can see the project routes below.

<p align="center">
  <img alt="layout" src=".github/layout.webp" width="100%">
</p>

## ๐Ÿ“ License

This project is under the [MIT license](./LICENSE).

rocketseat-project-polls's People

Contributors

emeraldknight-sp avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.