This provides some skeleton code for demonstrating how the three-layer model works for the Biocomputing II project.
Most importantly, it provides the required way in which files are expected to be laid out in the GitHib submission.
A good place to start would be to try this out.
-
Create a file called
config.sh
using one of theconfig_xxxx.sh
files as a template. At Birkbeck, you should just need to docp config_bbk.sh config.sh
. The values ofhtml
andcgi
are the locations where you need to install your HTML files and CGI scripts. -
Create a file called
cgi-biocomp2/config.py
. You can usecgi-biocomp2/config_demo.py
as a template. ChangecgiURL
to point to the path used to access a CGI script in a URL (at Birkbeck, something like/cgi-bin/cgiwrap/ab123/
(whereab123
is replaced by your username). -
Run the install script by typing
./install.sh
You should now be able to point your browser to the URL of the location in which you stored the HTML.
-
One member of your team must create a private repository on your GitHub account.
-
Allow the other members of the team read/write access to the repository:
- Click
Settings
(at the top) - Click
Manage access
(on the left) - Click
Invite a collaborator
- Add each of the members of your team
We will assume your GitHub username is JohnSmith
and your repository
is called BBKProject
. Take the following steps:
git clone [email protected]:AndrewCRMartin/biocomp2.git
cd biocomp2
git remote rm origin
git remote add origin [email protected]:JohnSmith/BBKProject.git
git push -u origin master
You have now created your own repository which is a copy of this skeleton project and synchronized it with your own GitHub.
You can now all clone the repository to your own machines or unix accounts and edit the code. Don't forget to commit and push your changes back to GitHub regularly and remember to pull down other people's changes.
The code is organized into three main directories:
-
createdb
This is where the code will live to parse the Genbank file and create the database -
html
This is where the HTML files live. If there is an alternative web front end then this would be in anhtml2
directory -
cgi-biocomp2
This is where the CGI scripts and all the code for the different layers lives.
The cgi-biocomp2
directory contains three sub-directories that
represent the three layers of code:
-
cgi-biocomp2/cgi
contains the CGI scripts. If there is an alternative web front end then this would be in an directory calledcgi-biocomp2/cgi2
-
cgi-biocomp2/bl
contains the business layer code. -
cgi-biocomp2/db
contains the database access layer code.
The install.sh
script in the top directory is a demonstration script that will copy the files to HTML and cgi-bin directories. See the instructions above for using these on the server at Birkbeck.