Skip to content

pith/happenings

Repository files navigation

Happenings

Test Python 3.12+ MIT License FastAPI


Table of Contents

Production links

Local usage

  • Create env
hatch env create
  • Start the server:
hatch run happenings
  • Signup
curl http://localhost:8000/signup \
  -H "Content-Type: application/json" \
  -d '{
    "username": "JohnDoe44",
    "email": "[email protected]",
    "password": "123"
  }' | jq .
  • login
curl http://localhost:8000/login \
  -H "Content-Type: application/json" \
  -d '{
    "username": "JohnDoe44",
    "password": "123"
  }' | jq .
  • Create an event
curl http://localhost:8000/events \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJKb2huRG9lNDQiLCJleHAiOjE3NDg5MDUxNDMsInR5cGUiOiJhY2Nlc3MifQ.EceWFgI3lZqTrmJIalxa9gQ3yt6rq6WEwe-GL9c3oGI" \
  -d '{
    "name": "Hellfest",
    "start_datetime": "2025-06-19T10:00:00",
    "end_datetime": "2025-06-22T16:00:00",
    "location": { "lat": 47.0971567, "long": -1.2727167 }
  }' | jq .

License

happenings is distributed under the terms of the MIT license.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published