8000 GitHub - paps/paps-hq: Dashboard written in node.js/SQLite/jQuery. Monitors spending, crypto-currencies (wallets, mining and market), bank accounts, gmail, reddit messages, machines (uptime and load avg) and Vélib bicycle stations. Includes modules for notifications (generic API to send and receive), notes, budget management and session management.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
This repository was archived by the owner on Jul 23, 2019. It is now read-only.
/ paps-hq Public archive

Dashboard written in node.js/SQLite/jQuery. Monitors spending, crypto-currencies (wallets, mining and market), bank accounts, gmail, reddit messages, machines (uptime and load avg) and Vélib bicycle stations. Includes modules for notifications (generic API to send and receive), notes, budget management and session management.

Notifications You must be signed in to change notification settings

paps/paps-hq

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

63 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Headquarters

Prerequisites

(Ubuntu 12.04 LTS 'precise')

# add-apt-repository ppa:chris-lea/node.js
# apt-get update
# apt-get install npm nodejs sqlite inotify-tools
# npm install -g coffee-script
# npm install -g supervisor
# npm install -g uglify-js
$ cd app
$ npm install
$ cd ..

Then, for development, use ./supervisor.sh and ./coffee.sh.

For production, ./coffee.sh is not really necessary. Just run it once every time you pull to generate the minified javascript. ./supervisor.sh can be used, or any other system that watches node.

SQLite database handling

app/db.sqlite is the dat 6174 abase used by the app. It is ignored by git.

To export the schema:

$ echo .schema | sqlite3 app/db.sqlite

db.sql contains the schema. To update it:

$ echo .schema | sqlite3 app/db.sqlite > db.sql

To create a fresh database:

$ sqlite3 app/fresh-db.sqlite < db.sql

nginx

Example nginx configuration for SSL headquarters in a hq sub-directory:

server {
	listen 80;
	server_name yolo.com;

	return 301 https://yolo.com$request_uri;
}

server {
	listen 443 default_server ssl;
	server_name yolo.com;

	ssl_certificate /etc/nginx/ssl/server.crt;
	ssl_certificate_key /etc/nginx/ssl/server.key;

	root /home/bob/www/yolo.com;

	access_log /home/bob/www-logs/yolo.com/access.log;
	error_log /home/bob/www-logs/yolo.com/error.log;

	location ^~ /hq/ {
			rewrite /hq(.*) $1 break;
			proxy_set_header X-Real-IP $remote_addr;
			proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
			proxy_set_header Host $http_host;
			proxy_set_header X-NginX-Proxy true;
			proxy_pass http://127.0.0.1:8090;
			proxy_redirect http://127.0.0.1:8090/ /hq/;
	}
}

For this to work, rootPath must be set to /hq/ in app/config.coffee and app/client/config.coffee. Also, port 8090.

About

Dashboard written in node.js/SQLite/jQuery. Monitors spending, crypto-currencies (wallets, mining and market), bank accounts, gmail, reddit messages, machines (uptime and load avg) and Vélib bicycle stations. Includes modules for notifications (generic API to send and receive), notes, budget management and session management.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0