Skip to content

fabiobatalha/ratchet

 
 

Repository files navigation

Ratchet
=======

Ratchet is an access statistics tool made over Tornado Framework plus MongoDB. This tool was made
thinking in create a common and easy to use tool/api to register accesses made to scientific 
publications, considering the accesses to the Journals, Issues and articles level.

Downloading Ratchet
===================

**Clonning from Github**

    git clone git://github.com/scieloorg/ratchet.git

**Downloading**

    https://github.com/scieloorg/ratchet/tags

How to Install
==============

Compatible with: 

 * OSX (Tested)
 * Linux (Tested)
 * Windows (Maybe! Good luck! Who knows?)

Pre-requirements
----------------

* virtualenv (http://www.virtualenv.org/en/latest/index.html#installation)
* pip (http://www.pip-installer.org/en/latest/installing.html)
* mongodb (http://www.mongodb.org/downloads)
* Tornado (http://www.tornadoweb.org/)

Creating Virtual Environment
----------------------------

    cd ratchet
    virtualenv --no-site-packages ratchet-env
    source ratchet-env/bin/activate

Installing the Applications
---------------------------

    pip install -r requirements.txt

Installing and Starting MongoDB
-------------------------------

MongoDB could be installed at the virtual environment ratchet-env if it is not installed in the server

**Installing MongoDB**

    cd ratchet-env/bin
    wget http://fastdl.mongodb.org/linux/mongodb-linux-x86_64-2.0.7.tgz
    tar -xvf mongodb-linux-x86_64-2.0.7.tgz
    ln -s mongodb-linux-x86_64-2.0.7/bin/mongod

**Starting MongoDB**

Just run the script!

    ./mongodb_start.sh

Running Server
==============

    python ratchet.py

By default, the server will run at localhost:8888 with the mongoDB server at localhost:27017.

For more details about how customize the server, run:

    python ratchet.py --help

Documentation
=============

All detailed documentations are available at: http://docs.scielo.org/projects/ratchet/en/latest/index.html

About

Access Stats tool under Tornado Framework

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 99.4%
  • Thrift 0.6%