Find file
Fetching contributors…
Cannot retrieve contributors at this time
72 lines (53 sloc) 2.23 KB
# Install Developer Tools - https://developer.apple.com/downloads
# Install Homebrew - http://mxcl.github.com/homebrew/
# Open the Terminal and type this:
$ which -a brew
/usr/local/bin/port # if the 'which' command returns nothing you don't have
# Homebrew installed or it's not in your path. Try
# typing 'echo $PATH' or email me
# Then install Git (hg). It lets you keep track of different versions of
# the site. This will take a while as there are a lot of things that have to be
# installed before Git can run properly.
$ brew install git
# Install python
$ brew install python
# Install pip
easy_install pip
# Install flask. Flask is a microframework used to display the pages on the
# site.
$ pip install -r requirements.txt
# At this point it should do a whole bunch of installation stuff... should take
# about 5 minutes.
#make sure flask is installed for your current version of python, to test,
#open python and try typing `import flask`. There should be no errors when you
#do so.
$ python
Python 2.7.1 (r271:86832, Dec 31 2010, 18:53:13)
[GCC 4.2.1 (Apple Inc. build 5664)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import flask
>>> quit()
# get a github account at github.com
# go to http://github.com/kevinburke/goodmorningcmc and click "fork"
# clone the good morning cmc repo into folder "goodmorningcmc"
$ git clone git@github.com:kevinburke/goodmorningcmc.git
# now to add several uncloned files
# let's say you want the good morning CMC database:
$ cd goodmorningcmc
$ sh -v switch_db.sh cmc_local
# I have several system passwords saved in a file called app.cfg - this is the
# only file not tracked by Github.
# app.config settings used in run.py - email kevin to get the file
$ touch app.cfg
# create latest.html - copy any index.html file in "static", or when you run
# the server, it will complain.
$ cp -v static/cmc/february/5/index.html templates/latest.html
#finally run the DB
$ python run.py
* Running on http://127.0.0.1:5000/
* Restarting with reloader...
# now edit some files and submit a pull request!
$ git add my_file.txt
$ git commit -m "my first commit!"
$ git push origin master
# then go to github and click "pull request" and you're done!