An open API service indexing awesome lists of open source software.

https://github.com/andisugandi/pysqmweb

PySQMWeb is a simple Ruby/Sinatra (web) application to display image and data files that generated by PySQM
https://github.com/andisugandi/pysqmweb

pysqm ruby sinatra-applications sinatra-web sqm

Last synced: 8 days ago
JSON representation

PySQMWeb is a simple Ruby/Sinatra (web) application to display image and data files that generated by PySQM

Awesome Lists containing this project

README

          

# PySQMWeb

PySQMWeb is a simple Ruby/Sinatra (web) application to display image and data files generated by [PySQM](https://github.com/mireianievas/PySQM). This web app is built with awesome idea of two projects: [web-intro-project](https://github.com/orfjackal/web-intro-project) and [tutsplus-build-an-image-gallery-in-ruby](https://github.com/andisugandi/tutsplus-build-an-image-gallery-in-ruby).

## Getting Started

1. Let's suppose your working directory right now is your user home directory, so clone the repository:

$ cd
$ git clone https://github.com/andisugandi/pysqmweb.git

2. Change working directory to `pysqmweb`:

$ cd pysqmweb

3. Make `public/pictures` and `public/data` directory:

$ mkdir public/pictures
$ mkdir public/data

4. If your SQM image and data files generated by PySQM are in `$HOME/PySQM/data/daily_plots/` and `$HOME/PySQM/data/daily_data/` respectively, then make symbolic link to `$HOME/pysqmweb/public/pictures/` and `$HOME/pysqmweb/public/data/` respectively:

$ ln -s $HOME/PySQM/data/daily_plots/* $HOME/pysqmweb/public/pictures/
$ ln -s $HOME/PySQM/data/daily_data/* $HOME/pysqmweb/public/data/

5. Install Ruby Gems dependencies and start the web server:

$ bundle install
$ bundle exec rackup

6. Using a browser, go to `http://localhost:9292` and you'll see the application running.

## Demo
[![Web Apps of Galeri Data SQM](https://img.youtube.com/vi/gGiPzz96X6I/0.jpg)](https://www.youtube.com/watch?v=gGiPzz96X6I)