Skip to content

byteknacker/PythonWebCalculator

 
 

Repository files navigation

PythonWebCalculator

This is a project to demonstrate my abilities in Docker.

The goal is to be able to access a web-based calculator on your localhost after running docker-compose up in your terminal.

The skills required to finalise this project are:

  • How to install and setup docker and associated tools
  • Use the CLI, Bash on a terminal on macOS
  • Write a Dockerfile using DSL
  • Understand a third-party app written in Python in such a way that I can map the necessary Docker commands and Dockerfile specifications to run the web server in Django.
  • Using git for source control
  • Deliver a ready-to-use app and documentation that allows first-time users to quickly setup the app.

Prerequisites

This application is only tested on macOS Mojave Version 10.14.6, but it should work on Linux and Windows (using PowerShell).

If the app does not run on your client, please issue a ticket or contact me directly.

Make sure you have the following dependencies installed on your local environment:

  • docker and docker-compose
  • python (version 2)
  • django
  • psycopg2

How to Use the App

  1. Download the repository

git clone https://github.com/byteknacker/PythonWebCalculator.git

  1. Change directory to the project directory

cd PythonWebCalculator

  1. Run docker-compose

docker-compose up

  1. Open a web browser such as Chrome and go to the site: http://localhost:8000

You should be able to see a web calculator.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 72.9%
  • HTML 15.1%
  • CSS 11.1%
  • Dockerfile 0.9%