An open API service indexing awesome lists of open source software.

https://github.com/takeruun/go-react-gcp-gae

GAE deploy go and react application
https://github.com/takeruun/go-react-gcp-gae

gae gcp

Last synced: about 1 year ago
JSON representation

GAE deploy go and react application

Awesome Lists containing this project

README

          

# これは
Google Cloud App Engine を使用して、React + Go で作成したサンプルアプリケーションです。

## 構成
バックエンド:Go
フロントエンド:React + TypeScript

build ファイルは、バックエンドの dist/ に配置して、/ にアクセスされると dist/assets/index.html を返すようにする

## デプロイ
1. Google Cloud Platform のプロジェクトを作成しておく
2. gcloud 初期化
```bash
gcloud init
```
3. フロントエンドのビルド
```bash
cd frontend
yarn build
```
4. バックエンドのデプロイ
```bash
cd backend
gcloud app deploy
```