Getting Started¶
This tutorial will describe how to get Python-Prefab up and running from a blank machine.
This will include installing project dependencies, building docker images, deploying containers and finally accessing the application.
Prerequisites¶
The main prerequisite for this project is the package manager of your choice for your given platform:
OSX : Install Homebrew
Windows : Install Chocolatey
Linux : Make sure that
apt-get,yumor your pacakge manager of choice is working
Installing Project Dependencies¶
Once your package manager is installed and configured, install Make and Docker.
OSX¶
brew install makebrew install docker
Windows¶
choco install makechoco install docker
Running Application¶
The application is containerized and is run using Docker. Multiple commands are available in the Makefile, but the main ones are:
make build_all: Build docker images for the front-end, back-end, jupyter server and test environmentmake run_all: Run the front-end, back-end and jupyter server usingdocker composemake test: Run unit tests usingPytestmake build_docs: Build documentation usingSphinx
Accessing Application¶
Once the application is running using make run_all, the servers can be accessed on various ports:
localhost:8000: access the back-end serverlocalhost:8501: access the front-end serverlocalhost:8888: access the jupyter server (note: an access token is needed to login, and can be found in the terminal output for the jupyter docker container)