海外青年技術訓練班填報系統
git clone https://github.com/0verseas/0verYoungAssociategit
cd 0verYoungAssociate
npm install
cp src/env.js.example src/env.js
edit the config file in src/env.js
$ npm run serve
$ npm run build
Just need to modify related documents(src/env.js, .env, docker-compose.yaml)
First of all, git clone https://github.com/0verseas/0verYoungAssociategit than switch folder to 0verYoungAssociate/, and do below
cd 0verYoungAssociate/
- switch git branch
sudo git checkout dev
sudo cp src/env.js.example src/env.js
- edit src/env.js (modify baseUrl, reCAPTCHA_site_key)
- docker build
sudo docker run -it --rm -v $PWD:/0verYoungAssociate -w /0verYoungAssociate node:14.16.0 sh -c 'npm install && npm run build'
- switch git branch
Secondly, switch folder to 0verStudent/docker/ and do below
cd docker/
sudo cp .env.example .env
- edit .env (modify NETWORKS)
- edit docker-compose.yaml (modify the container's label which "traefik.http.routers.malaysia-spring.rule=Host(
`input student's domain name here`
) && PathPrefix(`/malaysia_spring`
)")
Finally, did all the above mentioned it after that the last move is docker-compose up
sudo docker-compose up -d
If want to stop docker-compose
sudo docker-compose down