This repository is a bff template by using node.js(express)
# install yarn globally
$ npm install -g yarn
# install node modules
$ yarn install
# BOOT this app in local env
$ yarn dev
# BOOT this app in env(develop, staging, production)
$ yarn start:develop
# STOP this app
# At first, we should check pid
$ yarn status
$ yarn stop {pid}
It is assumed that Docker
works with Docker for mac).
If you want to run an application built with Docker
, please install it in advance.
The image of docker is lts-alpine
of nodejs
.
Please execute commands below.
# BOOT by daemon
$ docker-compose up -d
# BOOT(show log on your terminal)
$ docker-compose up
# STOP only
$ docker-compose stop
# STOP and REMOVE
$ docker-compose down
Once started, you can access http://localhost:8180, so call each endpoint. You can also run it with the curl
command.