Skip to content
This repository has been archived by the owner on Jul 20, 2022. It is now read-only.
/ alyzer Public archive

Web interface for stats and graphs computed from a CouchDB database

License

Notifications You must be signed in to change notification settings

pelletier/alyzer

Repository files navigation

Alyzer

Web interface for stats and graphs computed from a CouchDB database.

Alyzer allows you to generate graphs from CouchDB data, and display them in a web interface

Demo

Demo

  • Username: guest
  • Password: guest

Each time a commit is pushed to Alyzer's GitHub repository, a new document describing it is added to the demo database. See GitHub's post-hook documentation for more information.

Screenshots

Histogram example

Configuration example

Installation

Prerequisites

  1. Set up a CouchDB server.
  2. Make sure you have a working Ruby environment.

Install

  1. Clone the GitHub repository:

    git clone https://github.com/pelletier/alyzer.git

  2. Install the required gems using bundle (install it if needed):

    bundle install

  3. Make sure your CouchDB server is installed, and run the installation script:

    rake install:run

  4. Start the application:

    foreman start -f Procfile.dev

You're ready to go. Just visit http://localhost:8080/.

Configuration

Database settings

Alyzer needs 2 database-related settings to work:

  1. The URL of the CouchDB server.
  2. The database name.

At launch, the application starts by reading config/db.yml. If it does not exist, it uses the environment variables ALYZER_COUCH_URL and ALYZER_COUCH_DB.

The db.yml is automatically generated by the rake config:db command.

Create first user

Use the rake user:create command. Make sure you have configured the database before you run this command.

Deployment on Cloudant and Heroku

An easy way to run Alyzer is to create a database on Cloudant and an application on Heroku.

Once you have registered, create a new database on Cloudant and generate an API key and password with all but admin permissions, note it down, and proceed:

  1. Clone the GitHub repository:

    git clone https://github.com/pelletier/alyzer.git

  2. Create an Heroku app:

    heroku create

  3. Deploy:

    git push heroku master

  4. Set the configuration settings:

    heroku config:add ALYZER_COUCH_URL=https://apikey:apipassword@yourname.cloudant.com heroku config:add ALYZER_COUCH_DB=yourdbname

  5. Create the first user:

    heroku run rake user:create

You're done! Have fun.

License

MIT (see LICENSE).

About

Web interface for stats and graphs computed from a CouchDB database

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published