UbuntuGrok
874
Comment:
|
1339
|
Deletions are marked like this. | Additions are marked like this. |
Line 14: | Line 14: |
* {{{bzr checkout lp:~viejo-team/viejo-code/yagni .}}} | * {{{bzr checkout}}} [[https://launchpad.net/~viejo-team/viejo-code/yagni|lp:~viejo-team/viejo-code/yagni]] {{{.}}} |
Line 18: | Line 18: |
Now, we're good to go TDD :) Start thinking and writing tests man, then we'll make them pass! | Now, we're good to go TDD. The main files and directories of our project are: * setup.py -> Mostly to include packages required for our project to work * buildout.cfg -> Configuration for our instance * src/viejo/models.py -> Stores the models of our application. See the [[http://en.wikipedia.org/wiki/Model-view-controller|Model-view-controller]] for more * src/viejo/tests -> Directory to store our unit doctests * src/viejo/ftests -> Directory to store our functional doctests |
This documents the procedure I used to setup a Grok virtual environment for working on the Viejo content management system. Note that as of September 29th, grokproject 0.9 and grok 0.14 work on python2.5. So the easy_install-2.4 can be omitted.
sudo apt-get install build-essential python-dev python-setuptools subversion bzr
sudo easy_install virtualenv
mkdir viejo_virtualenv
cd viejo_virtualenv
virtualenv --no-site-packages virtualgrok
source virtualgrok/bin/activate
easy_install grokproject
grokproject Viejo
cd Viejo
rm -rf setup.py buildout.cfg src
bzr checkout lp:~viejo-team/viejo-code/yagni .
./bin/buildout
./bin/test
Now, we're good to go TDD. The main files and directories of our project are:
setup.py -> Mostly to include packages required for our project to work
buildout.cfg -> Configuration for our instance
src/viejo/models.py -> Stores the models of our application. See the Model-view-controller for more
src/viejo/tests -> Directory to store our unit doctests
src/viejo/ftests -> Directory to store our functional doctests
UbuntuGrok (last edited 2009-02-05 15:36:28 by 158)