Skip to content

Realtime dashboard for VKontakte group chat written in OCaml

Notifications You must be signed in to change notification settings

eur00t/dashboard

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Live at https://xxlv.party

Conversations processor

Groups consecutive messages into conversations

conv img

Frequency chart processor

Displays timeseries chart, a value at each point specifies a number of messages in some period before point (defined by configuration).

freq img

Setup

  1. Add config.json to the repo root:

     {
         "access_token": "<VK API token with permanent messages access>",
         "api_version": "5.60",
         "api_url": "https://api.vk.com/method/",
         "report_email": "<runtime errors will be sent to this address>"
     }
    
  2. Modify app_config.ml (if you want TLS).

  3. Fetch deps with Opam, build:

     opam switch 4.04.0
     opam pin add -y reactjs [email protected]:fxfactorial/ocaml-reactjs.git
     opam pin add xxlv ./
    
     make build
     make build_client
    
  4. Serve front-end from /public, e.g. with Nginx:

     http {
         include /usr/local/etc/nginx/mime.types;
    
         server {
             listen 8080;
             root <local repo path>/public;
    
             location / {
             }
    
             location /cached {
                 expires 1y;
             }
         }
     }
    
     events {
     }
    
  5. Run ./main.native <dump file path>

About

Realtime dashboard for VKontakte group chat written in OCaml

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published