Team:HFUT CHINA/readme
From 2014.igem.org
(One intermediate revision not shown) | |||
Line 1: | Line 1: | ||
- | |||
<html> | <html> | ||
<head> | <head> | ||
Line 41: | Line 40: | ||
<li><a href="https://2014.igem.org/Team:HFUT_CHINA/Overview.html">Overview</a></li> | <li><a href="https://2014.igem.org/Team:HFUT_CHINA/Overview.html">Overview</a></li> | ||
- | <li><a href="https://2014.igem.org/Team:HFUT_CHINA/Examples.html"> | + | <li><a href="https://2014.igem.org/Team:HFUT_CHINA/Examples.html">Results</a></li> |
<li><a href="https://2014.igem.org/Team:HFUT_CHINA/Future_Work.html">Future Work</a></li> | <li><a href="https://2014.igem.org/Team:HFUT_CHINA/Future_Work.html">Future Work</a></li> | ||
- | <li><a href="https:// | + | <li><a href="https://github.com/igemsoftware/HFUT_CHINA_2014.git">Download</a></li> |
</ul> | </ul> | ||
Line 51: | Line 50: | ||
<ul> | <ul> | ||
<li><a href="https://2014.igem.org/Team:HFUT_CHINA/Devblogs.html">Devblogs</a></li> | <li><a href="https://2014.igem.org/Team:HFUT_CHINA/Devblogs.html">Devblogs</a></li> | ||
- | <li><a href="https://2014.igem.org/Team:HFUT_CHINA/Database&Algorithm.html"> | + | <li><a href="https://2014.igem.org/Team:HFUT_CHINA/Database&Algorithm.html">Algorithm</a></li> |
<li><a href="https://2014.igem.org/Team:HFUT_CHINA/Tutorial.html">Tutorial</a></li> | <li><a href="https://2014.igem.org/Team:HFUT_CHINA/Tutorial.html">Tutorial</a></li> | ||
Line 130: | Line 129: | ||
<hr align="JUSTIFY"> | <hr align="JUSTIFY"> | ||
- | <h2 align="justify" class="STYLE1">Softwares Preparation</h2> | + | <h2 align="justify" class="STYLE1">Softwares Preparation |
+ | <a href="https://github.com/igemsoftware/HFUT_CHINA_2014.git">Download Software</a></h2> | ||
<p align="justify" class="STYLE1"> </p> | <p align="justify" class="STYLE1"> </p> | ||
<p align="justify" class="STYLE1">Software preparation for the deployment on server.</p> | <p align="justify" class="STYLE1">Software preparation for the deployment on server.</p> | ||
+ | <p align="justify" class="STYLE1"> </p> | ||
+ | <p align="justify" class="STYLE1"><a href="https://2014.igem.org/Team:HFUT_CHINA/jars">All the jars that we used in server has been listed bellow</a></p> | ||
<p align="justify" class="STYLE1"> </p> | <p align="justify" class="STYLE1"> </p> | ||
<h3 align="justify" class="STYLE1">Jdk & Jre</h3> | <h3 align="justify" class="STYLE1">Jdk & Jre</h3> | ||
Line 166: | Line 168: | ||
<div align="justify"> | <div align="justify"> | ||
- | + | <p>sudo apt-get update</p> | |
- | sudo apt-get update | + | |
+ | <p>sudo apt-get install openjdk-7-jdk</p> | ||
- | |||
- | |||
- | |||
</div> | </div> | ||
</div> | </div> | ||
Line 186: | Line 185: | ||
<div align="justify"> | <div align="justify"> | ||
- | + | ||
- | export JAVA_HOME=/usr/local/jdk1.8.0/ | + | export JAVA_HOME=/usr/local/jdk1.8.0/<br> |
- | export JRE_HOME=/usr/local/jdk1.8.0/jre/ | + | export JRE_HOME=/usr/local/jdk1.8.0/jre/<br> |
export PATH=$JAVA_HOME/bin:$JAVA_HOME/jre/bin:$PATH | export PATH=$JAVA_HOME/bin:$JAVA_HOME/jre/bin:$PATH | ||
- | + | <br> | |
export CLASSPATH=$CLASSPATH:.:$JAVA_HOME/lib:$JAVA_HOME/jre/lib | export CLASSPATH=$CLASSPATH:.:$JAVA_HOME/lib:$JAVA_HOME/jre/lib | ||
+ | <br> | ||
- | |||
</div> | </div> | ||
</div> | </div> | ||
Line 226: | Line 225: | ||
<div align="justify"> | <div align="justify"> | ||
- | + | ||
- | sudo apt-get update | + | sudo apt-get update<br> |
+ | |||
+ | sudo apt-get install tomcat7<br> | ||
- | |||
- | |||
</div> | </div> | ||
</div> | </div> | ||
Line 257: | Line 256: | ||
<div align="justify"> | <div align="justify"> | ||
- | + | ||
+ | |||
+ | sudo apt-get update<br> | ||
- | sudo apt-get | + | sudo apt-get install mysql-server<br> |
- | |||
- | |||
</div> | </div> | ||
</div> | </div> | ||
Line 287: | Line 286: | ||
<div align="justify"> | <div align="justify"> | ||
- | + | jdbc:mysql://localhost/Your db name<br> | |
- | |||
</div> | </div> | ||
</div> | </div> | ||
Line 303: | Line 301: | ||
<div align="justify"> | <div align="justify"> | ||
- | + | source source.sql<br> | |
- | < | + | |
</div> | </div> | ||
</div> | </div> | ||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
</body> | </body> | ||
</html> | </html> |
Latest revision as of 15:13, 17 October 2014
README
BioDesigner Server
Softwares Preparation Download Software
Software preparation for the deployment on server.
All the jars that we used in server has been listed bellow
Jdk & Jre
The server of BioDesigner is written in JAVA and JSP, and the JSP page will be parsed into servlet. So, first of all, you need to establish the java environment on the server.
----Windows Server
If you use a server with windows edition, you can download the jdk below.
After you install java, you need to add the path of jdk and jre to system: Add the following records to PATH: \%JAVA_HOME%\jdk\bin; Add the following data to CLASSPATH: .;\%JAVA_HOME%\jre\lib;
----linux(Ubuntu and Debian Edition)
Conduct the commands below to install openjdk:
sudo apt-get update
sudo apt-get install openjdk-7-jdk
After install the openjdk, you need to add the following records to /etc/profile data.
export JRE_HOME=/usr/local/jdk1.8.0/jre/
export PATH=$JAVA_HOME/bin:$JAVA_HOME/jre/bin:$PATH
export CLASSPATH=$CLASSPATH:.:$JAVA_HOME/lib:$JAVA_HOME/jre/lib
Apache Tomcat
apache tomcat is a jsp server, and the jsp files will be parsed into servlet files, in order to response http request.
----Windows
You can download apache tomcat at the website below, and tomcat-7 will be a better choice.
When you install tomcat, the program may ask you to provide your jdk&jre path.parsing
----Linux(Ubuntu and Debian Edition)
Conduct the following commands in your terminal:
sudo apt-get install tomcat7
MySQL Server
Our project need a database service. There are many kinds of databases in the market. And we use Oracle MySQL database, because it's very powerful and very light. By the way, it's free of charge.
----Windows
You can download MySQL server at the website below. As for a better performination, we suggest that you choose MySQL 5.x edition.
----Linux (Ubuntu and Debian Edition)
Conduct the following commands in your terminal:
sudo apt-get install mysql-server
Deployment
The deployment process is consisted of 2 steps operation.First of all, you need to push all the jsp and java codes to tomcat server, and the second is to create the database.
----server
Fortunatly, MyEclipse has compiled all the java codes to class files. So, you will first create a folder in the '%TOMCAT_HOME%\webapp' path, and then, you can copy all the files to your own folder which is created at the first step. At last, you could easily start this project by start your tomcat server.
----database
We have create an sql file named source.sql, all the data in our database is included. So, after you log in, you create your own database named as you like(we use BioDesiger as our name). If you create a different name, you must modify the hibernate.cfg.xml file. Set the value of the key "hibernate.connection.url" with
Also, you may need to update the value of the keys "hibernate.connection.username" and "hibernate.connection.password"
After that, you can Insert all the data to your database. You can use "source" command to complete it quickly.So, please change directory to the source.sql file path, and then, log in to your database and conduct the command below: