Skip to content
No description, website, or topics provided.
Python
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.vscode
config
models
modules
routes
utils
.gitignore
LICENSE
README.md
docker-compose.yml
index.py
requirements.txt

README.md

Check out the Wiki first! https://github.com/bounteous/PackTrack-Api/wiki

PackTrack-Api

The purpose of this APP is to provide the necessary services so that customers can send the encrypted content on the client side to another recipient of the content. On the client side before starting a chat, two private keys are generated using AES-256. During the course of message exchange between users, they make use of these individual secret keys to transmit the content through this API.

Technologies

Flask (Python 3.7.3)

Flask is a lightweight WSGI_ web application framework. It is designed to make getting started quick and easy, with the ability to scale up to complex applications. It began as a simple wrapper around Werkzeug_ and Jinja_ and has become one of the most popular Python web application frameworks.

Flask offers suggestions, but doesn't enforce any dependencies or project layout. It is up to the developer to choose the tools and libraries they want to use. There are many extensions provided by the community that make adding new functionality easy.

MongoDB

MongoDB is a database, the part of the application responsible for storing and retrieving information. MongoDB is a NoSQL database. Under the NoSQL umbrella we put all those databases that do not use the SQL language for querying the data.

Redis

Redis in the NoSQL ecosystem. ... Redis (REmote DIctionary Server) is key-value in-memory database storage that also supports disk storage for persistence. It supports several data types: Strings, Hashes, Lists, Sets and Sorted Sets; implements publish/subscribe messaging paradigm and has transactions.

Install guide

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

You can’t perform that action at this time.