Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/fernferret/demobrowser

A Repository to store TF2 Demos
https://github.com/fernferret/demobrowser

Last synced: about 2 months ago
JSON representation

A Repository to store TF2 Demos

Awesome Lists containing this project

README

        

# Source Demo Browser
![Demo Browser in action](http://i4.minus.com/i8FbLCCHzoxJZ.png)

## Installing
If I were you, I'd use [virtualenv](https://pypi.python.org/pypi/virtualenv).
Install that first:
```console
$ sudo pip install virtualenv
```

### Make a new Virtual Env
```console
$ virtualenv /opt/venv/demo

$ source /opt/venv/demo/bin/activate
```

**Note: The name of your virtual env will appear inside parenthesis: ``(demo)`` in this example.
If you don't see that, maybe you didn't source the proper [activate](http://www.virtualenv.org/#activate-script) script!**

### Install the Demo Browser
```console
(demo)$ cd /opt/sw

(demo)$ git clone git://github.com/FernFerret/demobrowser.git

(demo)$ cd demobrowser

(demo)$ pip install -r requirements.txt
```

## First Run
Copy the provided ``demobrowser/settings.cfg.example`` to
``demobrowser/settings.cfg`` and edit the values inside it. The big one is
the ``STEAM_API_KEY``. You can get one from here:
[http://steamcommunity.com/dev/apikey](http://steamcommunity.com/dev/apikey).

Once you've started it up, simply login with steam.
The first user who logs in will become an administrator
and can add other users.

After this, you're on your own for now, until I feel
like writing more documentation...

### Quick Run
You can either use the provided wsgi script, or to get going quickly, just run:
To get going ASAP, just run:
```console
(demo)$ python runservermanager.py
```

**Don't forget to [source your virtualenv](#make-a-new-virtual-env) script first!**

### Run with mod_wsgi
When you've given it all of your tweaks, use the provided [wsgi script](https://github.com/FernFerret/demobrowser/blob/master/demobrowser.wsgi)
to add to Apache!

TODO: Show my apache config!