SwiftMeme is a source discovery and keyword monitoring tool for tracking memes online.
- SwiftRiver Gateway (Directly)
- SwiftRiver Core (Indirectly)
- RiverID (Indirectly)
Run the following at the command line:
wget -qO- --no-check-certificate https://raw.github.com/ushahidi/SwiftMeme/master/deploy/debian/install.sh | sudo bash
-
Install the necessary Debian packages.
apt-get install apache2 libapache2-mod-wsgi memcached python-pip git
-
Install the necessary Python packages.
pip install Flask oauth2 python-memcached
-
Create a user for SwiftMeme processes to run as.
adduser --disabled-password --gecos "" swiftmeme
-
Create a local clone of the application.
git clone https://github.com/ushahidi/SwiftMeme.git /var/www/swiftmeme
-
Replace the default Apache configuration with the bundled one.
cp /var/www/swiftmeme/deploy/debian/000-default /etc/apache2/sites-enabled/
-
Tell Apache to reload its configuration.
/etc/init.d/apache2 reload
-
Copy the example SwiftMeme configuration file for customisation.
cp /var/www/swiftmeme/api/config.example.py /var/www/swiftmeme/api/config.py
-
Open the configuration file in vim.
vim /var/www/swiftmeme/api/config.py
<VirtualHost *:80>
Alias /static/ /var/www/swiftmeme/static/
AliasMatch ^/$ /var/www/swiftmeme/static/index.html
AliasMatch ^/dashboard$ /var/www/swiftmeme/static/dashboard.html
WSGIDaemonProcess swiftmeme user=swiftmeme group=swiftmeme threads=5
WSGIScriptAlias / /var/www/swiftmeme/api/swiftmeme.wsgi
</VirtualHost>
- If your application is installed in a different directory than
/var/www/swiftmeme
, please modify the path accordingly, both in the Apache configuration and in the WSGI handler (swiftmeme.wsgi
). - You need a user set up for the SwiftMeme process to run as. In the above, we assume both the user and group will be
swiftmeme
.
- All bundled source code is released under the GNU Affero General Public License.
- All bundled documentation is released under the GNU Free Documentation License.
- Charl van Niekerk (Front End and Back End Development)
- Joe Zhou (Design and Front End Development)
- Jon Gosier (Creative Input and Inspiration)
- Matthew Griffiths (Architecture and Inspiration)