Welcome to your Bootcamp SRE Capstone Project!

Remember that you can find the complete instructions for this project here.

Setup

Install dependencies

pip3 install -r python/requirements.txt

Setup dotenv (environment variables)

Copy the .env.example file to .env

cp .env.example .env

Replace the values of the variables in the .env file

Run project

python3 api.py

Endpoints

  • [post] /login
  • [get] /_health
  • [get] /cidr-to-mask?value=?
  • [get] /mask-to-cidr?value=?

Docker

Build and up the docker image using the following make commands

make build
make up
make down