Skip to content

Latest commit

 

History

History
61 lines (41 loc) · 2 KB

File metadata and controls

61 lines (41 loc) · 2 KB

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.