Skip to content

NYCXAM/terpmap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TerpMap

A Python/Flask campus incident map where signed-in students can pin campus events such as traffic accidents, hazards, closures, activities, and safety notices.

Features

  • Google OAuth login, including optional @umd.edu hosted-domain hint.
  • UMD account login for development/demo using an @umd.edu email verification code printed to the server console.
  • Browser geolocation after login, with a "my location" marker.
  • SQLite-backed campus reports with category, severity, description, timestamp, and author.
  • Leaflet/OpenStreetMap map UI centered on University of Maryland.

Setup

python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
cp .env.example .env
python app.py

Open http://127.0.0.1:5050 (or set PORT to use another port).

Google OAuth

Create an OAuth client in Google Cloud Console and add this redirect URI:

http://127.0.0.1:5050/auth/google/callback

Then put your credentials in .env:

SECRET_KEY="a-long-random-secret"
GOOGLE_CLIENT_ID="your-client-id"
GOOGLE_CLIENT_SECRET="your-client-secret"
OPENAI_API_KEY="your-openai-api-key"
OPENAI_MODEL="gpt-4.1-mini"

Real UMD SSO normally requires an institution-issued SAML/OIDC/CAS client. This app includes an @umd.edu email-code login flow so UMD account behavior can be tested locally without storing passwords.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors