GithubHelp home page GithubHelp logo

edgecaseberg / whoseopinion.com Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 1.0 970 KB

Open Code for an Open Opinion Site.

License: GNU General Public License v2.0

JavaScript 29.64% CSS 10.35% Python 59.62% Shell 0.39%

whoseopinion.com's Introduction

whoseopinion.com

Open Code for an Open Opinion Site.

Technologies:

Installation and Setup:

For setting up Harp, Django, or Apache please visit their respective sites and follow their instructions.

Once Harp is installed, run harp compile from the root of the repository to be sure that the static files are up to date. If you are changing the name of the site to something else, update the harp.json file as appropriate.

Next, install virtualenvwrapper and create a virtual environment for your python files. While using workon you can run pip install -r requirements.txt to install the neccesary modules to run the Django API server.

Finally, setup an Apache environment which serves the Harp's www directory and proxy pass's to the Django server like so:

<VirtualHost *:80>
            ServerAdmin webmaster@localhost
            ServerName dev.whoseopinion.com
 
            DocumentRoot /path/to/the/repo/www
            <Directory />
                    Options Indexes
                    AllowOverride None
            </Directory>
 
            ProxyPass /api http://localhost:8000/questions/
            ProxyPassReverse /api http://localhost:8000/questions/
</VirtualHost>

You'll need to do a workon <environment> and a fab runserver from the api directory before you start apache for the ProxyPass to work correctly.

Note that at this time, the use of Apache is for development only. A soon to come production environment may use different technologies such as nginx and gunicorn.

whoseopinion.com's People

Contributors

edgecaseberg avatar

Watchers

James Cloos avatar  avatar

Forkers

scperkins

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.