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
- 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.
- Set up a CouchDB server.
- Make sure you have a working Ruby environment.
-
Clone the GitHub repository:
git clone https://github.com/pelletier/alyzer.git
-
Install the required gems using bundle (install it if needed):
bundle install
-
Make sure your CouchDB server is installed, and run the installation script:
rake install:run
-
Start the application:
foreman start -f Procfile.dev
You're ready to go. Just visit http://localhost:8080/
.
Alyzer needs 2 database-related settings to work:
- The URL of the CouchDB server.
- 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.
Use the rake user:create
command. Make sure you have configured the database
before you run this command.
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:
-
Clone the GitHub repository:
git clone https://github.com/pelletier/alyzer.git
-
Create an Heroku app:
heroku create
-
Deploy:
git push heroku master
-
Set the configuration settings:
heroku config:add ALYZER_COUCH_URL=https://apikey:apipassword@yourname.cloudant.com
heroku config:add ALYZER_COUCH_DB=yourdbname
-
Create the first user:
heroku run rake user:create
You're done! Have fun.
MIT (see LICENSE).