β Step-by-Step for Docker
π Build & Run Docker Container
docker build -t cidr-calculator .
docker run -p 5000:5000 cidr-calculator Then open your browser to http://localhost:5000
- Open Terminal
- Create a Virtual Environment (recommended)
cd ~/Desktop/VS-Code/CIDR\ Web\ application/ python3 -m venv venv source venv/bin/activate You should now see your prompt change to indicate the virtual environment is active (e.g., (venv)).
- Install Flask
pip install flask (Optional: Save dependencies to requirements.txt)
pip freeze > requirements.txt
- Open the App In your browser, go to:
http://localhost:5001 β Done! You're now running a Flask web app on your Mac.