Difference between revisions of "Talks"

From CSLabsWiki
Jump to: navigation, search
(Updating installation documentation to match Talks 2.0)
Line 8: Line 8:
 
|category = Service
 
|category = Service
 
|handoff = no
 
|handoff = no
}}
 
 
{{VM
 
|hostname=
 
|maintainer= [[user:lannonbr|Benjamin Lannon]]
 
|operating_system = [[wikipedia:Debian | Debian Jessie]] x64
 
|ldap=yes
 
|development_status=Running
 
|status=Running
 
|vm_host=[[phoenix]]
 
 
}}
 
}}
  
Line 23: Line 13:
  
 
==Setup==
 
==Setup==
A default Debian VM is required. Then, Flask can be installed with <pre>pip install flask</pre>
+
The repository for Talks is now found at [https://github.com/lannonbr/NodeTalks lannonbr/NodeTalks]. clone it onto a machine
Following that, the [https://github.com/COSI-Lab/Talks repository] can be cloned to the VM and a
+
and then run
simple sqlite3 database named talks.db has to be created with a table containing 3 columns: name,
+
 
type, and desc. Next, one can open up a screen / tmux session and run talks.py currently the default
+
<pre>npm install</pre>
port is 1025 so that would have to be configured in the iptables. Otherwise, the service should be
+
 
up and running.
+
to get all of the dependencies. (Make sure that NodeJS and NPM are up to date). Next, download the forever package with
 +
 
 +
<pre>sudo npm install -g forever</pre>
 +
 
 +
This package allows node applications be run as a daemon. Following this, you can run
 +
 
 +
<pre>forever start index.js</pre>
 +
 
 +
in the NodeTalks directory to start daemon. by default the http server will be running on port 3000, so to have it work on
 +
port 80 for talks.cslabs.clarkson.edu, you need to set up a reverse proxy. the configured file for the talks virtualhost is below
 +
 
 +
<pre>
 +
<VirtualHost *:80>
 +
ServerName talks.cslabs.clarkson.edu
 +
ServerAlias talks.cosi.clarkson.edu
 +
ServerAlias talks
 +
Options -Indexes
 +
 +
ProxyPreserveHost on
 +
ProxyPass / http://localhost:3000/
 +
ProxyPassReverse / http://localhost:3000/
 +
</VirtualHost>
 +
</pre>
 +
 
 +
you will need to enable the proxy and proxy_http apache modules to make this work, so run
 +
 
 +
<pre>
 +
sudo a2enmod proxy
 +
sudo a2enmod proxy_http
 +
</pre>
 +
 
 +
Afterwards, enable the site and restart apache by running
 +
 
 +
<pre>
 +
sudo a2ensite talks
 +
sudo service apache2 restart
 +
</pre>
 +
 
 +
And talks should be up and running as expected.

Revision as of 10:32, 26 March 2016

Talks
IP Address(es): 128.153.145.200
Contact Person: Benjamin Lannon
Last Update: 2016/01/22
VM Host (Physical): phoenix
Host VM: DubsDot


Talks is a web app that people can sign up for a lightning talk or after meeting slot and have priority over those who did not.

Setup

The repository for Talks is now found at lannonbr/NodeTalks. clone it onto a machine and then run

npm install

to get all of the dependencies. (Make sure that NodeJS and NPM are up to date). Next, download the forever package with

sudo npm install -g forever

This package allows node applications be run as a daemon. Following this, you can run

forever start index.js

in the NodeTalks directory to start daemon. by default the http server will be running on port 3000, so to have it work on port 80 for talks.cslabs.clarkson.edu, you need to set up a reverse proxy. the configured file for the talks virtualhost is below

<VirtualHost *:80>
	ServerName talks.cslabs.clarkson.edu
	ServerAlias talks.cosi.clarkson.edu
	ServerAlias talks
	Options -Indexes
	
	ProxyPreserveHost on
	ProxyPass / http://localhost:3000/
	ProxyPassReverse / http://localhost:3000/
</VirtualHost>

you will need to enable the proxy and proxy_http apache modules to make this work, so run

sudo a2enmod proxy
sudo a2enmod proxy_http

Afterwards, enable the site and restart apache by running

sudo a2ensite talks
sudo service apache2 restart

And talks should be up and running as expected.