typescript-starter
setting environmental variables
$ echo PORT=3000 > .env
scripts
format
$ yarn format
lint
$ yarn lint
# auto fix
$ yarn lint:fix
dev
$ yarn dev
# hot reload
$ yarn dev:watch
test
$ yarn test
build
$ yarn build
start
$ yarn start
$ curl localhost:8000
Hello World!
deploy to Heroku
heroku config:set NPM_CONFIG_PRODUCTION=false YARN_PRODUCTION=false PORT=8000
また、SALT
に適切な長さの文字列を設定しておく。
heroku config:set SALT=abcdefghijklmopqrstuvwxyz1234567890abcdefghijklmopqrstuvwxyz1234567890abcdefghijklmopqrstuvwxyz1234567890
License
MIT