Code Monkey home page Code Monkey logo

claremonthvz's Introduction

Claremont Humans versus Zombies Site

This is the website for the Claremont College's biannual HvZ game.

Dev machine setup

Developing for the site will require [Django] 4, [VirtualEnv] 3, and [Compass] 5. If you are familiar with and have (or know how to get) all of these, feel free to skip this section.

First off, install [pip] 1 using your favorite package manager. If you're developing on a Mac, I recommend installing/using [homebrew] 2 as your package manager of choice. Then brew install python will install pip.

Using pip, you should have an easy time installing virtualenv:

pip install virtualenv

Secondly, you'll need to install [Compass] 5. You can do this with

sudo gem install compass

If you don't have RubyGems installed, get Compass installed using your favorite package manager or method.

Building the site

Now create a root directory for your site. Mine is ~/programming/claremonthvz.org.

Note that I'm going to refer to ~/programming everywhere. If your root directory is in a different place, use your imagination and substitute accordingly.

Now build a virtualenv in the root directory, which for me was

virtualenv ~/programming/claremonthvz.org

Virtualenv provides a wrapper between your machine and the site. As long as the site only interacts with packages inside this wrapper, we know that we can port the site over to other machines without accidentally relying on some random laptop's quirks.

To actually use the virtualenv, you'll need to activate it:

source ~/programming/claremonthvz.org/bin/activate

This command only affects your current terminal, so you'll need to rerun it every time you want to work on the site. I highly recommend you add an alias to your .bashrc along the lines of

alias hvz="cd ~/programming/claremonthvz.org && source bin/activate && cd claremontHvZ/HVZ"

Clone your forked GitHub repo (you don't have to use the command line for this):

git clone [email protected]:MYUSERNAME/claremontHvZ.git

Now complete the build with

python ~/programming/claremonthvz.org/claremontHvZ/setup.py

If all went well, that should be it! There's a detailed guide to the build process on the [wiki] 6.

Running a development version of the server

To run a development version of the server:

python manage.py runserver

You can then access the site by directing your browser to localhost:8000.

Running unit tests

To run our unit tests:

python manage.py test HVZ

These tests will check registration, feeding, and permission scenarios.

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.