- Install docker, docker-compose.
- step 1 config the enviroment of project in the Dockerfile with the following variable:
- ENV_API (local, development, staging, production,... with each value, need to create a json config file in config folder for e.g ENV_API = local, so json config file is config/local.json)
- SSN_FRONTEND_HOST is the host of client using this api server for cors
- SSN_API_DIR the base folder of this project
- step 2 build docker
$ git clone https://github.com/dungvan/soccer-social-network-api
$ cd soccer-social-network-api
$ docker-compose build
$ docker-compose up
- install ngrok https://ngrok.com/
- export port 9000 to internet
$ ./ngrok http 9000
- waiting for ngrok export successfully, copy the
endpoint
which ngrok generate tosoccer-social-network-api/config/local.json
, replace to value ofendpoint
ofobjectstorage