Skip to content

intuitivepixel/code-challenge-poll

ย 
ย 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

14 Commits
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Polling Application - Code Challenge

A full-stack poll application built with Svelte (frontend) and FastAPI (backend).

๐Ÿš€ Features

  • Create questions
  • Submit answers to specific questions
  • View all answers for a question

๐Ÿ› ๏ธ Tech Stack

Frontend:

Backend:

Dev Tools:

๐Ÿ“ฆ Setup & Running Locally

See:

๐Ÿ”ฎ Future Improvements

Backend

  • Introduce backend route for GET /question/{id}/answers (avoids filtering client-side).
  • Introduce routers/modules for better structure (questions, answers, stats).
  • Add schemas for validation and explicit typing.
  • Build proper database migrations.
  • Add efficient endpoint for fetching answers for a specific question.
  • Add authentication/authorization layer (admin interface visits is public).

Frontend

  • Create small API client wrapper for fetch calls.
  • Global error-handling strategy, add reusable components for errors, loading states, and forms.
  • Apply a scale-based spacing and typography system for visual consistency.
  • Improve responsive layout behavior.
  • Consider complying with A11y standards.

Testing

  • Add FastAPI tests for new endpoints.
  • Add Vitest component tests for question/answer flows.
  • Include linting & formatting checks in CI.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Svelte 52.3%
  • Python 16.4%
  • JavaScript 10.0%
  • CSS 9.8%
  • TypeScript 9.7%
  • HTML 1.8%