Skip to content

pkawal/Result-aggregation-server

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Result-aggregation-server

Result aggregation server is a flask api and server that will be used to store the results returned by installation test scripts. Currently the results are not being stored and thus no useful information is being extracted out of it.

This server will enable Software Carpentry and Data Carpentry instructors to identify the most faulty packages and versions. Also, it will help the Carpentries learners in the installation process.

You can view the most faulty packages at http://installation.software-carpentry.org/view/.

Instructions for developers

  • Clone this repository
git clone git@github.com:prerit2010/Result-aggregation-server.git
  • Project is built on python3

  • Create a Virtual environment

cd Result-aggregation-server
virtualenv -p python3 env
  • Activate Virtual Environment
source env/bin/activate
  • Install dependencies
pip install -r requirements.txt`
  • One other dependency is Redis, which is used for throttling:
sudo apt-get install redis-server
  • Perform flask migrations

Run the following command just once to initiate the migrations.

python manage.py db init

Everytime there are some schematic changes in the database, run the following 2 commands :

python manage.py db migrate
python manage.py db upgrade
  • If you want to add a sample database for testing :
python manage.py import_db
  • Test the API:
python test.py
  • Run :
python run.py

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 46.6%
  • HTML 37.0%
  • JavaScript 14.9%
  • CSS 1.5%