This GitHub project demonstrates the integration of FastAPI with Google Cloud Platform's (GCP) Datastore. It provides a simple backend application for task management, allowing operations such as adding, retrieving, and deleting tasks.
- FastAPI Backend: Leverages FastAPI for building efficient and scalable APIs.
- GCP Datastore Integration: Utilizes GCP Datastore for data storage and retrieval.
- Task Management: Supports operations like listing, adding, and deleting tasks.
- CORS Middleware: Ensures compatibility with front-end running on different domains or ports.
- Python 3.11
- Pyenv and Virtualenv
- GCP account and project setup
- Gmake (optional)
- Clone the Repository
git clone [repository-link] cd [repository-name]
- Run Locally
or
make run
uvicorn main:app --reload
- Deploy to GCP
or
make deploy
gcloud app deploy