Giter Club home page Giter Club logo

freshermeat's Introduction

Presentation

Functionalities:

  • software release tracking;
  • vulnerability tracking (CVE);
  • subscribe to releases of projects via an ATOM feed;
  • repository statistics;
  • contact the project manager.

Deploy the service

Requirements

$ sudo apt-get install libbz2-dev postgresql npm python-pip
$ sudo -H pip install pew pew[pythonz]

$ sudo apt-get install clamav-daemon clamav-freshclam clamav-unofficial-sigs
$ sudo freshclam
$ sudo systemctl start clamav-daemon.service

PostgreSQL is required to store JSON values in the database.

libbz2-dev is required by the Python library which will check PGP key.

clamav related packages are required because this application is able to scan files posted by the users through the forms or the API ;-)

Configure and install the application

$ git clone https://github.com/cedricbonhomme/Freshermeat.git
$ cd Freshermeat/
freshermeat$ pew install 3.6.3 --type CPython
freshermeat$ pew new --python=$(pew locate_python 3.6.3)  -a . -r requirements.txt freshermeat

freshermeat/freshermeat$ npm install

freshermeat/freshermeat$ export APPLICATION_SETTINGS=development.cfg

freshermeat/freshermeat$ python src/manager.py db_empty
freshermeat/freshermeat$ python src/manager.py db_init
freshermeat/freshermeat$ python src/manager.py create_admin [email protected] firstname lastname your-password
freshermeat/freshermeat$ python src/manager.py import_projects var/projects.json
freshermeat/freshermeat$ python src/manager.py import_osi_approved_licenses

freshermeat/freshermeat$ python src/runserver.py
 * Running on http://127.0.0.1:5000/ (Press CTRL+C to quit)
 * Restarting with stat
 * Debugger is active!
 * Debugger PIN: 204-397-194

You can also use the script test-init-db.sh to populate the database with sample values:

freshermeat/freshermeat$ ./test-init-db.sh
Importing projects from var/projects.json ...
Importing OSI approved licenses...
Creation of the admin user alan ...
Creation of the user john ...

freshermeat/freshermeat$ python src/runserver.py
* Running on http://127.0.0.1:5000/ (Press CTRL+C to quit)
* Restarting with stat
* Debugger is active!
* Debugger PIN: 204-397-194

You can configure the application in src/instance/development.cfg or create your own file and export it in the variable APPLICATION_SETTINGS.

You can add new projects with the client script (src/manager.py import_projects) or via a POST request to the API (http://127.0.0.1:5000/api/v1/project).

Workers

Retrieving CVEs

freshermeat/freshermeat$ python src/manager.py fetch_cve_asyncio

You can launch the CVE fetcher periodically with cron.

You can query the CVE API:

$ curl http://127.0.0.1:5000/api/v1/CVE

Release tracking

freshermeat/freshermeat$ python src/manager.py fetch_releases

freshermeat's People

Contributors

cedricbonhomme avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.