Skip to content

Implementation

Bounteous edited this page May 29, 2019 · 2 revisions

Pip

ArchLinux / Manjaro

$ sudo pacman -Syu python-pip

Gentoo

$ sudo eix --sync
$ sudo emerge --ask dev-python/pip

Debian >= 8 / Ubuntu >= 16

$ sudo apt update
$ sudo apt upgrade
$ sudo apt install python3-pip

Fedora >= 22

$ dnf update
$ dnf upgrade
$ dnf install python3-pip

Running the app

$ git clone https://github.com/bounteous/PackTrack-Api.git
$ cd PackTrack-Api

Create the virtual environment

$ python3 -m pip install --user virtualenv
$ python3 -m venv env

Activating the virtual environment

$ source env/bin/activate

Install dependencies

$ pip install -r requirements.txt

Build Docker container

$ docker-compose up --build

Choose how you want to start the app (CLI or VScode)

CLI

$ python3 index.py

alt text

VScode (debug)

alt text

Links