Skip to content
EdvardunsvagPublic

About

Resources

Stars

0 stars

Watchers

1 watching

Forks

Repository files navigation

Quiz Application

A full-stack quiz application with automated question generation using Azure OpenAI, built with Next.js (frontend) and .NET 8 (backend).

Quick Start

Prerequisites

  • Docker and Docker Compose
  • Azure CLI (for production deployment)
  • Node.js 18+ (for local development without Docker)
  • .NET 8 SDK (for local backend development)

Local Development

  1. Clone the repository

    git clone <repository-url>
    cd panterne
  2. Set up environment variables

    cp .env.example .env.local
    # Edit .env.local with your configuration
  3. Start all services

    docker compose -f docker-compose.local.yml up
  4. Access the application

Production Deployment

See docs/PRODUCTION_DEPLOYMENT.md for detailed deployment instructions.

Project Structure

panterne/
├── frontend/          # Next.js frontend application
├── backend/           # .NET 8 Web API backend
├── infrastructure/    # Azure Bicep infrastructure as code
└── docs/              # Documentation

Features

  • Automated Question Generation: Daily quiz questions generated using Azure OpenAI
  • Multiple Categories: Support for various quiz categories
  • User Authentication: GitHub and Google OAuth integration
  • Leaderboards: Track user scores and rankings
  • Real-time Updates: Live quiz sessions with instant feedback

Documentation

Technology Stack

Frontend

  • Next.js 14
  • TypeScript
  • TailwindCSS
  • React

Backend

  • .NET 8
  • ASP.NET Core Web API
  • Entity Framework Core
  • PostgreSQL
  • Hangfire (background jobs)
  • Azure OpenAI

Infrastructure

  • Azure Container Apps
  • Azure Container Registry
  • Azure PostgreSQL Flexible Server
  • Azure Log Analytics

Development

Running Services Individually

Frontend (without Docker)

cd frontend
npm install
npm run dev

Backend (without Docker)

cd backend/QuizApi
dotnet restore
dotnet run

Database Migrations

cd backend/QuizApi
dotnet ef database update

Contributing

  1. Create a feature branch
  2. Make your changes
  3. Test locally using docker compose -f docker-compose.local.yml up
  4. Submit a pull request

License

[Your License Here]

About

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages