scorelab/Bassa

Name: Bassa

Owner: Sustainable Computing Research Lab

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

Created: 2015-05-04 07:01:33.0

Updated: 2018-03-25 18:36:01.0

Pushed: 2018-05-24 09:58:48.0

Homepage: null

Size: 1815

Language: JavaScript

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

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

tclone](https://user-images.githubusercontent.com/28682735/35194406-2f6f08e2-fed9-11e7-8411-86d83bed6507.gif)

python 3 instead of Python 2

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

tupsh](https://user-images.githubusercontent.com/28682735/35194409-2ffbca66-fed9-11e7-9242-ffe036067d18.gif)



atabase Setup

ype below in a MySql terminal.

create database Bassa

ype below in the root of project.

mysql -u root -p Bassa < Bassa.sql

pen components/core/DBCon.py and setup database username and password.


est Server

$ cd components/core/ $ python3 Main.py

thon3main](https://user-images.githubusercontent.com/28682735/35194408-2fce9136-fed9-11e7-80e6-fac5e6f54bc7.gif)


assa UI

Install dependencies with

$ cd ui/ $ npm install

To start
`gulp serve`


lp_serve](https://user-images.githubusercontent.com/28682735/35194407-2fa172e6-fed9-11e7-9e89-065ecb3cbf87.gif)



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

ername - rand
ssword - pass


ssaui](https://user-images.githubusercontent.com/28682735/35193753-667c7e0c-fecd-11e7-918f-13ce1d00d055.gif)


Make sure you have aria2 installed.
`aria2c --enable-rpc`


ia2c](https://user-images.githubusercontent.com/28682735/35193755-709e92ee-fecd-11e7-8dd0-412304853c8c.gif)


How to Use Bassa
ter Setting up Bassa, Login/Register.There are two types of users in Bassa- (1) The Admin and (2) The Normal Users.
user can add a link through the webapp and Bassa stores it in the local server right away. This way multiple users can add various links, but the downloads won?t start right away. 
e organisation admin can start the downloads at a time of his/her liking. 
en the users who had added links for certain files can download them from the local servers at a much higher speed.
u can even watch a video tutorial for the same on [Youtube](https://www.youtube.com/watch?v=NxS8T1EphCA)
Autoformat JS with Prettier

ublime Text Plugin](https://github.com/jonlabelle/SublimeJsPrettier)
tom Plugin](https://github.com/prettier/prettier-atom)

 more plugins [here](https://github.com/prettier/prettier#editor-integration)


Run UI unit tests
$ cd ui/
$ npm test OR $ yarn test 

This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.