cd gis
npm run dev
-
Install and set up the Google Cloud SDK.
-
Authenticate with Google Cloud:
gcloud auth login
- Set your project ID:
PROJECT_ID=xxxx
gcloud config set project $PROJECT_ID
- Build and push the Docker image to Google Artifact Registry:
docker build ./backend --platform linux/amd64 -t asia-northeast1-docker.pkg.dev/$PROJECT_ID/main/backend && docker push asia-northeast1-docker.pkg.dev/$PROJECT_ID/main/backend
- Deploy to Cloud Run:
gcloud run deploy backend \
--image asia-northeast1-docker.pkg.dev/$PROJECT_ID/main/backend \
--platform managed \
--region asia-northeast1 \
--allow-unauthenticated
- Execute the API
curl -d '{"keyword": "tech"}' -H "Content-Type: application/json" https://xxxx.asia-northeast1.run.app/contents
- Install the Firebase CLI:
npm install -g firebase-tools
- Login to Firebase:
firebase login
- Build your frontend:
cd gis
npm run build
- Deploy to Firebase Hosting:
firebase deploy