Skip to content

vende6/ChatWithMe

Repository files navigation

Mergington High School Activities API

A super simple FastAPI application that allows students to view and sign up for extracurricular activities.

Features

  • View all available extracurricular activities
  • Sign up for activities

Getting Started

  1. Install the dependencies:

    pip install fastapi uvicorn
    
  2. Run the application:

    python app.py
    
  3. Open your browser and go to:

API Endpoints

Method Endpoint Description
GET /activities Get all activities with their details and current participant count
POST /activities/{activity_name}/signup?email=student@mergington.edu Sign up for an activity

Data Model

The application uses a simple data model with meaningful identifiers:

  1. Activities - Uses activity name as identifier:

    • Description
    • Schedule
    • Maximum number of participants allowed
    • List of student emails who are signed up
  2. Students - Uses email as identifier:

    • Name
    • Grade level

All data is stored in memory, which means data will be reset when the server restarts.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published