# install dependencies
$ yarn install
# serve with hot reload at localhost:3000
$ yarn dev
# build for production and launch server
$ yarn build
$ yarn start
# generate static project
$ yarn generateFor detailed explanation on how things work, check out the documentation.
プロジェクト直下に.envファイルを作成して、eStat-APIのAPPIDを記載。 SITE_URLは開発環境と実行環境で分ける。
詳しい説明はこちらを参照。
ESTAT_APPID = '○○○○○○○○○○○○○○○○○'
SITE_URL = 'http://localhost:3000/'都道府県リスト、市区町村リストはdata/codesに保存している。
もしRESASから再取得したい場合は、RESAS_API_KEYを設定してsetCode.pyを実行する。
詳しくはこちらを参照。
RESAS_API_KEY = '○○○○○○○○○○○○○○○○○'