Check out the Wiki first! https://github.com/bounteous/PackTrack-Api/wiki
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.
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
Jinja_ and has become one of the most popular Python web
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 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 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.
ArchLinux / Manjaro
$ sudo pacman -Syu python-pip
$ 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
$ pip install -r requirements.txt
Build Docker container
$ docker-compose up --build
Choose how you want to start the app (CLI or VScode)
$ python3 index.py
- Personal blog: https://www.thelinuxsect.com