npm install
Copy the file .env.example to .env
cp .env.example
Remplace the values of the vars in the .env file.
npm start
- [get] /
- [post] /login
- [get] /_health
- [get] /cidr-to-mask?value=${cidr}
- [get] /mask-to-cidr?value=${mask}
Open a terminal in this directory, then run the following command:
docker build --tag smontiel/academy-sre-bootcamp-salvador-montiel:latest ./
Open a terminal, then run the following command:
docker pull smontiel/academy-sre-bootcamp-salvador-montiel:latest
docker run -p 8000:8000 --rm -it smontiel/academy-sre-bootcamp-salvador-montiel:latest
Now, go to: http://localhost:8000/