Assuming you already have nodejs installed. Run the following command one by one.
git clone https://github.com/ekalaiv/IPSS-Microservices.git
git checkout fe/dev
If you have not created a new branch for yourself the run the below command
git checkout -b <your short name>/fe/dev
If you already have your local dev branch then
git checkout <your short name>/fe/dev
Then change directory to
cd fe/mfp-gen-chk-rpt
npm i
npm start
Once successfullt started try accessing http://localhost:10086 in Google Chrome.
sudo npm start
To build for production, please run
sudo npm run build
To build dev docker imagee please use the following command
sudo docker build -f ./Dockerfile.dev -t mfp-gen-chk-rpt-image-dev .
To build prod docker imagee please use the following command
sudo docker build -f ./Dockerfile.prod -t mfp-gen-chk-rpt-image-prod .
To start a development container, please run
sudo docker container run -d -p 10086:10086 --name mfp-gen-chk-rpt-dev mfp-gen-chk-rpt-image-dev
To start a prod container, please run
sudo docker container run -d -p 10086:80 --name mfp-gen-chk-rpt-prod mfp-gen-chk-rpt-image-prod
To bash into to the container, please use
sudo docker exec -it mfp-gen-chk-rpt-dev bash
To stop the dev container, use,
sudo docker container stop mfp-gen-chk-rpt-dev
To remove the dev container, use,
sudo docker container rm mfp-gen-chk-rpt-dev
To remove the dev image, use,
sudo docker image rm mfp-gen-chk-rpt-image-dev