Skip to content

daisuke-minami/nuxt-estat

Repository files navigation

nuxt-estat

Build Setup

# 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 generate

For 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 = '○○○○○○○○○○○○○○○○○'

About

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors