This application consists of two components:
- A FastAPI backend for NFC identity registration and iCal event fetching
- A React frontend with Web NFC support for Chrome on Android
/backend
: Contains the Python FastAPI backend/frontend
: Contains the React TypeScript frontenddeploy-to-azure.sh
: Script for deploying to Azure Container Registryazure-webapp-setup.sh
: Script for setting up Azure Web AppsAZURE-DEPLOYMENT.md
: Detailed Azure deployment instructions
The backend provides two main endpoints:
/register
: Register an NFC ID with an iCal URL/get_events/{nfc_id}
: Get calendar events for a registered NFC ID
See the backend README for more details.
The frontend provides a user interface for:
- Registering NFC tags with iCal URLs
- Viewing calendar events by scanning NFC tags
The frontend supports Web NFC API for Chrome on Android and provides a fallback manual input option for other browsers.
See the frontend README for more details.
Build the container:
cd backend
podman build -t nfc-ical-backend .
Run the container:
podman run -d --name nfc-ical-backend -p 8000:8000 nfc-ical-backend
The API will be available at http://localhost:8000
Build the container:
cd frontend
podman build -t nfc-ical-frontend .
Run the container:
podman run -d --name nfc-ical-frontend -p 3000:80 nfc-ical-frontend
The frontend will be available at http://localhost:3000