This project combines a React frontend with Firebase Cloud Functions to manage excursions, users, and customers.
- Install the Firebase CLI and initialize your Firebase project.
- Update
.firebasercwith your Firebase project ID. - Build the frontend:
cd frontend && npm install && npm run build
- Deploy functions and hosting:
firebase deploy
The API is exposed under /api and the React app is served via Firebase Hosting.
The repository includes a Dockerfile for building a container image with the
FastAPI backend and prebuilt React frontend.
- Build the Docker image locally:
docker build -t tour-guide-app . - Push the image to Yandex Container Registry (replace
<registry-id>with your registry):docker tag tour-guide-app cr.yandex/<registry-id>/tour-guide-app:latest docker push cr.yandex/<registry-id>/tour-guide-app:latest
- Create a Serverless Container:
yc serverless container create \ --name=tour-guide \ --image=cr.yandex/<registry-id>/tour-guide-app:latest \ --memory=512M --cores=1 \ --service-account-id=<service-account-id>
- Attach a public HTTP trigger to access the app over the Internet.
Provide the path to your Firebase service account JSON via the
FIREBASE_CREDENTIALS environment variable when creating the container.