scorelab / Bassa

Automated Download Queue for Communities to take the best use of Internet bandwidth
GNU General Public License v3.0
168 stars 493 forks source link
automateddownloads download-file download-manager download-queue downloadqueue entreprise-file-downloader

logo

Build Status Codacy Badge [Docker Build Status]() PyPI PyPI Gitter

Automated Download Queue for Enterprise to take the best use of Internet bandwidth

About

Bassa solves the problem of wasting internet bandwidth by queuing a download if it is larger than a given threshold value in high traffic and when the traffic is low, it completes the download of the files. After the files are downloaded, the users can get their files from the local servers which do not require external internet bandwidth.

Main functionalities

Installation

Note: Windows users can check the installation guide here.

First clone the Repository git clone https://github.com/scorelab/Bassa.git

gitclone

Use python 3 instead of Python 2

  $ ./setup.sh
  $ cd components/core/
  $ sudo python3 setup.py develop

setupsh

Database Setup

  1. Type below in a MySql terminal.
create database Bassa
  1. Type below in the root of project.
mysql -u root -p  Bassa < Bassa.sql
  1. Open components/core/DBCon.py and setup database username and password.

Test Server

  $ cd components/core/
  $ python3 Main.py

python3main

Bassa UI

Install dependencies with

$ cd ui/
$ npm install

To start

run gulp serve

gulp_serve

In the first time you login, the credentials would be as follows.

bassaui

Make sure you have aria2 installed.

run aria2c --enable-rpc

aria2c

How to Use Bassa

Find more plugins here

Run UI unit tests

    $ cd ui/
    $ npm test OR $ yarn test