Skip to content

TruePack/decompose

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 

Repository files navigation

Decompose

Web Application, decomposes the number into prime factors.

Getting Started

Prerequisites

For install web-app in containerization environment you need installed Docker and Git.

Installing

Clone repository

git clone https://github.com/TruePack/decompose
cd decompose/mathcalc

Clone repository and change directory with Dockerfile.

Build container

First you need to obtain the docker-container with the help of Dockerfile. You can get this by executing the command from the directory with the Dockerfile.

docker build -t mathcalc .

Details:

docker build

Build an image from a Dockerfile.
Usage: docker build [OPTIONS] PATH | URL | -

-t mathcalc

-t sets the name to the image.

.

Path to Dockerfile.

Run image

Then you need start your built image.

docker run --rm -it -p 8000:8000 mathcalc 

Details:

docker run

Run a command in a new container.
Usage: docker run [OPTIONS] IMAGE [COMMAND] [ARG...]

--rm

Automatically remove the container when it exits.

-t

Allocate a pseudo-terminal.

-p 8000:8000

Publish a container's port to the host.

mathcalc

Name of image which running.

Finally

And if everything is ok, you will see the message in terminal:

Performing system checks...

System check identified no issues (0 silenced).
January 21, 2019 - 04:52:52
Django version 2.1.5, using settings 'mathcalc.settings'
Starting development server at http://0.0.0.0:8000/
Quit the server with CONTROL-C.

Now you can visit app on your local machine with browser on localhost:8000 (127.0.0.1:8000).

Built With

  • Django - The web framework used
  • Docker - Containerization system

Authors

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published