Skip to content

gkocak-scottlogic/nfc_ical_boa_30_07

Repository files navigation

NFC iCal Application

This application consists of two components:

  1. A FastAPI backend for NFC identity registration and iCal event fetching
  2. A React frontend with Web NFC support for Chrome on Android

Structure

  • /backend: Contains the Python FastAPI backend
  • /frontend: Contains the React TypeScript frontend
  • deploy-to-azure.sh: Script for deploying to Azure Container Registry
  • azure-webapp-setup.sh: Script for setting up Azure Web Apps
  • AZURE-DEPLOYMENT.md: Detailed Azure deployment instructions

Backend

The backend provides two main endpoints:

  1. /register: Register an NFC ID with an iCal URL
  2. /get_events/{nfc_id}: Get calendar events for a registered NFC ID

See the backend README for more details.

Frontend

The frontend provides a user interface for:

  1. Registering NFC tags with iCal URLs
  2. 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.

Running with Podman

Backend

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

Frontend

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published