Skip to content

algomatic-inc/sd-team-gravity

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sd-team-gravity

Local Environment Setup

cd gis
npm run dev

http://localhost:5173/

Deployment to Google Cloud Run

  1. Install and set up the Google Cloud SDK.

  2. Authenticate with Google Cloud:

gcloud auth login
  1. Set your project ID:
PROJECT_ID=xxxx
gcloud config set project $PROJECT_ID
  1. 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
  1. 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
  1. Execute the API
curl -d '{"keyword": "tech"}' -H "Content-Type: application/json" https://xxxx.asia-northeast1.run.app/contents

Frontend Deployment to Firebase Hosting

  1. Install the Firebase CLI:
npm install -g firebase-tools
  1. Login to Firebase:
firebase login
  1. Build your frontend:
cd gis
npm run build
  1. Deploy to Firebase Hosting:
firebase deploy

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published