rakuten_f2e
Demo
https://rakuten-f2e.ccclin.tk/
Architecture
Tools
- Backend: golang
- Frontend: Vuejs 3
- Database: Google Firestore
Before Start
- create a GCP GAE service
- enable GCP Firestore
- create a service account with role GCP datastore admin for GCP Firestore
- install
gcloud
SDK on your lab - install
yarn
on your lab - install
golang
on your lab
On development
Backend
- change GCP project
$ gcloud config set project <GCP_PROJECT_ID>
- enable service account for GCP Firestore
$ gcloud auth activate-service-account --key-file=<SERVICE_ACCOUNT_KEY_JSON>
- start backend
FIRESTORE_PROJECT=<GCP_PROJECT_ID> ORIGIN_ALLOWED="http://localhost:8081" go run ./main.go
which http://localhost:8081
is allowed CORS domain
Frontend
- go to frontend folder
$ cd ./rakuten_f2e_frontend
- install yarn tools
$ yarn install
- start frontend
$ yarn run serve --port 8081
Deploy
- Build Frontend
$ cd ./rakuten_f2e_frontend
$ yarn run build
- Edit
app.yaml
and deploy to GAE
$ gcloud app deploy app.yaml