Skip to content

Commit 6e43d11

Browse files
committed
initial
1 parent 3d6bd74 commit 6e43d11

File tree

6 files changed

+136
-0
lines changed

6 files changed

+136
-0
lines changed

Diff for: README.md

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
2+
,-----.,--. ,--. ,---. ,--.,------. ,------.
3+
' .--./| | ,---. ,--.,--. ,-| || o \ | || .-. \ | .---'
4+
| | | || .-. || || |' .-. |`..' | | || | \ :| `--,
5+
' '--'\| |' '-' '' '' '\ `-' | .' / | || '--' /| `---.
6+
`-----'`--' `---' `----' `---' `--' `--'`-------' `------'
7+
-----------------------------------------------------------------
8+
9+
10+
Hi there! Welcome to Cloud9 IDE!
11+
12+
To get you started, create some files, play with the terminal,
13+
or visit http://docs.c9.io for our documentation.
14+
If you want, you can also go watch some training videos at
15+
http://www.youtube.com/user/c9ide.
16+
17+
Happy coding!
18+
The Cloud9 IDE team

Diff for: books.sql

+75
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
CREATE DATABASE test;
2+
3+
use test;
4+
DROP TABLE IF EXISTS books;
5+
CREATE TABLE books
6+
(id VARCHAR(8),
7+
surname VARCHAR(24),
8+
first_name VARCHAR(24),
9+
title VARCHAR(96),
10+
price FLOAT,
11+
yr INT,
12+
description VARCHAR(100),
13+
inventory INT,
14+
primary key (id)
15+
);
16+
17+
18+
DELETE FROM books;
19+
20+
INSERT INTO books VALUES('101', 'Jacobs', 'Sas',
21+
'Beginning XML with DOM and Ajax', 49.99, 2006,
22+
'Good introduction to XML and Ajax.', 30);
23+
24+
INSERT INTO books VALUES('102', 'Liang', 'Daniel',
25+
'Introduction to Java Programming, Comprehensive Version, 6th Ed',
26+
59.99, 2007, 'Excellent hands-on introduction to Java.', 40);
27+
28+
INSERT INTO books VALUES('103', 'Hughes', 'Merlin',
29+
'Java Networking Programming', 49.99, 1999,
30+
'Excelent introduction to Java networking.', 15);
31+
32+
INSERT INTO books VALUES('104', 'Lethbridge', 'Timothy',
33+
'Object-Oriented Software Engineering, 2nd Ed', 59.99, 2006,
34+
'Excellent introduction to software engineering with hands-on approach.', 30);
35+
36+
INSERT INTO books VALUES('105', 'McClure', 'Stuart',
37+
'Web Hacking: Attacks and Defense', 29.99, 2003,
38+
'Best introduction to Web security.', 30);
39+
40+
INSERT INTO books VALUES('106', 'Mackey', 'David',
41+
'Web Security for Network and System Administrators', 29.99, 2003,
42+
'Practical introduction to system and network security, but not much on Web security.', 40);
43+
44+
INSERT INTO books VALUES('107', 'Stallings', 'William',
45+
'Network Security Essentials: Applications and Standards, 3rd Ed', 49.99, 2007, 'Excellent theorectical introduction to network security.', 30);
46+
47+
INSERT INTO books VALUES('201', 'Bodoff', 'Stephanie',
48+
'The J2EE Tutorial', 49.99, 2002, 'Good introduction to J2EE.', 20);
49+
50+
INSERT INTO books VALUES('202', 'Barish', 'Greg',
51+
'Building Scalable and High-Performance Java Web Applications Using J2EE Technology',
52+
49.99, 2002, 'Simple introduction to J2EE.', 10);
53+
54+
INSERT INTO books VALUES('203', 'Liang', 'Daniel',
55+
'Tutorial for JBuilder', 15.00, 2003, 'Good introduction to JBuilder.', 15);
56+
57+
INSERT INTO books VALUES('204', 'Sahu', 'Maneesh',
58+
'Java Server Pages from Scratch', 39.99, 2001, 'Good introduction to JSP.', 12);
59+
60+
INSERT INTO books VALUES('205', 'Roman', 'Ed',
61+
'Mastering Enterprise JavaBeans and J2EE', 49.99, 2002, 'Good treatment of EJB.', 5);
62+
63+
INSERT INTO books VALUES('206', 'Armstrong', 'Eric',
64+
'The Java Web Services Tutorial', 49.99, 2002, 'Good introduction to Web services.', 30);
65+
66+
INSERT INTO books VALUES('207', 'Deitel', 'H. M.',
67+
'XML How to Program', 29.99, 2001, 'Good introduction to XML.', 8);
68+
69+
INSERT INTO books VALUES('208', 'Weaver', 'James',
70+
'Beginning J2EE 1.4', 49.99, 2003, 'Good introduction to J2EE 1.4.', 2);
71+
72+
INSERT INTO books VALUES('209', 'Deitel', 'H. M.',
73+
'Wireless Internet & Mobile Business: How to Program', 59.99, 2002,
74+
'Good introduction to mobile computing.', 2);
75+

Diff for: buildJava.sh

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/bin/bash
2+
3+
cwd=$(pwd)
4+
5+
export CLASSPATH="$cwd/tomcat/lib/servlet-api.jar:$cwd/tomcat/webapps/survey/WEB-INF/lib/mysql-connector-java-3.1.12-bin.jar:$cwd/tomcat/webapps/survey/WEB-INF/classes"
6+
7+
javac -cp $CLASSPATH $cwd/tomcat/webapps/survey/WEB-INF/classes/survey/*.java

Diff for: setRootUser.sql

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
USE test;
2+
3+
SET PASSWORD FOR 'root'@'localhost' = PASSWORD("123456");

Diff for: setupMySql.sh

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#!/bin/bash
2+
3+
# review this for more information https://docs.c9.io/docs/setting-up-mysql
4+
5+
cwd=$(pwd)
6+
7+
mysql-ctl start
8+
9+
wget https://pacedps.blob.core.windows.net/cs612-f2015/books.sql
10+
11+
mysql < $cwd/books.sql
12+
13+
sudo mysql < $cwd/setRootUser.sql
14+

Diff for: setupTomcat.sh

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
#!/bin/bash
2+
3+
cwd=$(pwd)
4+
#groupadd tomcat
5+
#useradd -s /bin/false -g tomcat -d $cwd/tomcat/tomcat tomcat
6+
7+
mkdir $cwd/tomcat
8+
wget http://mirror.cogentco.com/pub/apache/tomcat/tomcat-8/v8.0.28/bin/apache-tomcat-8.0.28.tar.gz -O tomcat.tar.gz
9+
10+
tar xvf tomcat.tar.gz -C $cwd/tomcat --strip-components=1
11+
12+
#wget https://pacedps.blob.core.windows.net/cs612-f2015/bookstore2.war
13+
wget https://pacedps.blob.core.windows.net/cs612-f2015/survey.war
14+
15+
#cp $cwd/bookstore2.war $cwd/tomcat/webapps
16+
cp $cwd/survey.war $cwd/tomcat/webapps
17+
18+
19+

0 commit comments

Comments
 (0)