Skip to content

Latest commit

 

History

22 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Project Logo

POLLS-APP-API

A simple polling application using FastAPI

last-commit repo-top-language repo-language-count

Built with the tools and technologies:

Redis FastAPI Python Pydantic


Table of Contents


Overview

Polls-app-api is a modern, FastAPI-powered framework for building scalable polling applications with real-time results. It provides a structured, modular API architecture that simplifies creating, managing, and retrieving polls, votes, and results.

Why polls-app-api?

This project aims to streamline the development of interactive polling systems. The core features include:

  • 🛠️ API Modularity: Well-defined endpoints for polls, votes, and results, enabling scalable and maintainable code.
  • 🚀 Fast Performance: Built on FastAPI, ensuring high-speed request handling and seamless integration.
  • 🔑 Data Validation: Robust models for votes, options, and polls to maintain data integrity.
  • 💾 Real-Time Data: Utility functions leveraging Redis for instant vote tracking and result aggregation.
  • 📄 Clear Configuration: Simplified setup with Pipfile and comprehensive documentation for quick onboarding.

Getting Started

Prerequisites

This project requires the following dependencies:

  • Programming Language: Python
  • Package Manager: Pipenv

Installation

Build polls-app-api from the source and install dependencies:

  1. Clone the repository:

    ❯ git clone https://github.com/reyharighy/polls-app-api.git
  2. Navigate to the project directory:

    cd polls-app-api
  3. Install the dependencies:

Using pipenv:

❯ pipenv install

Usage

Activate the environment:

Using pipenv:

pipenv shell

Server

Run the FastAPI server with uvicorn:

Using pipenv:

uvicorn app.main:app --reload

Documentation

Interactive API documentation is well-generated with Swagger UI:

http://localhost:8000/docs#/


About

Polls-app-api is a modern, FastAPI-powered framework for building scalable polling applications with real-time results. It provides a structured, modular API architecture that simplifies creating, managing, and retrieving polls, votes, and results.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages