Usage Guide for Fist Iteration
Setting Up Subversion
- download Subversion server for Windows at http://subversion.tigris.org/
- installing Subversion
- for Subversion 1.4.0, unzip the zip package and put in somewhere you like
- for example, C:\svn-win32-1.4.0
- download and install Sunbversion-Python, at http://subversion.tigris.org/ download page, the subversion-python install .exe file can be download at bottom lines.
- add C:\svn-win32-1.4.0\bin to your Windows PATH environment variable
- create a repository directory to place all repositories, such as C:\svn-win32-1.4.0\svn-repos
Setting Up Trac
- download Trac at http://trac.edgewall.org/
- install Trac as the installing guide says
- make sure you have installed Python, SQLite, PySQLite, ClearSilver
- SQLite may not be used, we will use MySQL instead, but need modify dev.cfg setting in WebHat source code.
- create a directory to put all your trac environments, such as C:\TracEnv
- add C:\Python24\Scripts\ to your Windows PATH environment variable
- If your python root directory is not in C:\Python24, you have to replace it
- change C:\Python24\Scripts\tracd as C:\Python24\Scripts\tracd.py
- It is recommended that you make a copy of tracd and rename it as tracd.py instead of directly rename tracd as tracd.py
- change C:\Python24\Scripts\trac-admin as C:\Python24\Scripts\trac-admin.py
- It is recommended that you make a copy of trac-admin and rename it as trac-admin.py instead of directly rename trac-admin as trac-admin.py
Setting Up WebHat
- download TurboGears? at http://www.turbogears.org/
- install TurboGears? as installing guide says
- download setup file "tgsetup.py" and execute "tgsetup.py" on windows
- download "Easy Install" at http://peak.telecommunity.com/DevCenter/EasyInstall
- download setup file "ez_setup.py" and run it to setup environment
- install PyTextile?, http://wiki.python.org/moin/PyTextile
- install TurboTinyMCE, http://cheeseshop.python.org/pypi/TurboTinyMCE/
- install MySQL, http://www.mysql.com/
- please remember you MySQL accout name and password
- you may open the port 3306 from you firewall setting
- install MySQL-python, http://sourceforge.net/projects/mysql-python
- install MySQL GUI Tools, http://www.mysql.com/ (it's optional, for better management of MySQL)
- install SQLyog, http://webyog.com/en/
- download TortoisesSVN http://tortoisesvn.tigris.org/ and install it
- download WebHatTG at svn://colors.ee.ncku.edu.tw/CSHW-Repo
- configure WebHat for Subversion and Trac position
- configure C:\WebHatTG\dev.cfg
- open C:\WebHatTG\webhattg\subcontrollers\StudentAccountController?.py with your favorite python editor
- change all SVN_REPOSITORY_ROOT to where you like, such as C:\\svn-win32-1.4.0\\svn-repos
- change all SVN_TEMPLATES_ROOT to where sou put your templates, such as C:\\svn-win32-1.4.0\\templates
- change all SVN_REPOSITORY_ROOT_FOR_IMPORT as SVN_REPOSITORY_ROOT except the \\ simbol to /
- change all SVN_TEMPLATES_ROOT_FOR_IMPORT as SVN_TEMPLATES_ROOT except the \\ simbol to /
- change all TRAC_ENV_ROOT to where your like, such as C:/TracEnv
- change all TRAC_TEMPLATE_ROOT to where you install your Trac, normally its in share directory of your python installation, such as C:/Python24/share/trac/templates
- configure your Tracd position in TRACD_POSITION, such as C:/Python24/Scripts/tracd.py
- Setting up MySQl tables
- cd C:\WebHatTG\
- tg-admin sql sql > sql.txt
- delete "Using database URI mysql://root:cshw@localhost:3306/webhattg"
- modify sql.txt, appending some missing ";" in each SQL table creation statement
- start SQLyog and connect to your running MySQL server
- create a database called webhattg
- select the database and select DB -> Import Batch File from MenuBar?
- import sql.txt that we just created
- and all the tables needed in webhattg database should be created right now
- start up WebHat with command : python C:\WebHatTG\start-webhattg.py
New Account Creation with WebHat
- After starting up WebHat, using your browser to view http://localhost:8080
- Input Account Name and Password to apply for new account
- You may have to wait fot about fifteen seconds for the system environment creation operation
- Atfer the environment is successfully created, success notification page and using guide page will be returned
Visiting Personal Trac
- now you can visit your personal Trac at http://localhost:8000
Using Subversion
- the subversion repository can also be accessed via svn://localhost/account-repos
Attachments
-
WebHatTG.zip (37 kB) -
,
added by seLain on Mon Sep 18 13:22:26 2006.
Download in other formats: