The Polls API is an application that allows users to create and manage polls, as well as manage votes for polls.
The API is written using Fastify, Node.js, Prisma ORM, PostgreSQL, and Redis.
To set up the project, follow these steps:
- Clone the repository
- Run
npm installto install the dependencies - Run
docker compose up -dto setup PostgreSQL and Redis - Create a
.envfile taking.env.exampleas a template - Run
npm run devto start the application - That's it, you now can use the API on
http://localhost:3333!
The API adopts a RESTful architecture and utilizes Fastify for efficient request handling. Prisma ORM is used for database access, with PostgreSQL as the main database and Redis for caching.
The Polls API is currently in development and is expected to reach version 1.0 soon.
This project is licensed under the MIT License. See the LICENSE file for details.