Skip to content
This repository has been archived by the owner on Apr 2, 2024. It is now read-only.

sugyan/shogi-dataset

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

shogi-dataset

Development

Back-end

Set environment variables

cp web/env.example.yaml web/env.yaml
# edit web/env.yaml

Launch dev server

gcloud beta emulators datastore start
$(gcloud beta emulators datastore env-init)
export MODE=development
export GOOGLE_CLOUD_PROJECT=<Project ID>
# set other env variables
go run web/main.go

Front-end

cd frontend
npm install
npm start

Deployment

export REACT_APP_MODEL_URL_BASE=<MODEL URL BASE> # CORS must be supported
npm run build
gcloud app deploy web

Download

go run cmd/download/main.go -host <HOSTNAME> -token <API token>