Skip to content

Development Environment Instructions

Dylan Allbee edited this page Nov 2, 2013 · 3 revisions

This guide will be mostly debian linux flavored, but can be followed loosely for any OS. We really do recommend a linux/mac computer for development though. Furthermore, if you need a test server, you can ask Dylan for one.

  • Install Git
  • Set up your git username, email, and optionally, your editor
git config --global user.name "Your Name"
git config --global user.email "your.email@somedomain.com"
git config --global core.editor subl  # optional
git clone git@github.com:YOUR_GITHUB_ACCOUNT/Website.git ~/CSE-Club-Website
  • (Optional) Add the remote test server
git remote add test git@cse-club.com:YOUR_GIT_LOCATION

At this point, you have everything you need to develop remotely. Continue reading to set up a local server.

  • Install PostgreSQL & Pip
sudo apt-get install pip postgresql
  • Run the pip command to install virtualenv:
sudo pip install virtualenv
  • Set up your venv
cd ~/CSE-Club-Website
virtualenv venv                  # Installs the python virtualenv
source venv/bin/activate         # Enter the virtualenv
pip install -r requirements.txt  # Installs the required environment

You now have every dependency that you will need. From here you need to create a postgreSQL database, populate it with our schema, and run the app. You should then be able to access the application at http://localhost:5000/

Clone this wiki locally