X Tutup
Skip to content

Commit 89d4e83

Browse files
committed
initial commit
0 parents  commit 89d4e83

File tree

89 files changed

+3648
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

89 files changed

+3648
-0
lines changed

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
.idea
2+
build
3+
bin
4+
*.iml
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
#Sun Sep 06 00:08:32 CST 2015
17 Bytes
Binary file not shown.
336 KB
Binary file not shown.
3.2 MB
Binary file not shown.
18.6 KB
Binary file not shown.
43.9 KB
Binary file not shown.

README.md

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
SpringBlog
2+
=====
3+
4+
TaskViewer is for business operators to perform tasks and execute business processes.
5+
6+
## Development
7+
8+
This is a Maven project powered by Spring MVC framework. The following commands are useful for local development and testing:
9+
10+
11+
### Gradle (recommended)
12+
Make sure Gradle is installed in your machine. Try `gradle -v` command. Otherwise install in from [http://www.gradle.org/](http://www.gradle.org/).
13+
14+
```
15+
# Install artifacts to your local repository
16+
./gradlew build
17+
18+
# Start the web application
19+
./gradlew jettyRun
20+
```
21+
22+
View `http://localhost:8080/TaskViewer` on your browser.
23+
24+
### Maven
25+
26+
```
27+
mvn install -DskipTests
28+
29+
mvn clean jetty:run
30+
```
31+
32+
View `http://localhost:8080/` on your browser.
33+
34+

build.gradle

Lines changed: 115 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,115 @@
1+
apply plugin: 'java'
2+
apply plugin: 'war'
3+
apply plugin: 'idea'
4+
apply plugin: 'eclipse'
5+
apply plugin: 'org.akhikhl.gretty'
6+
// apply plugin: 'spring-boot'
7+
8+
// JDK 8
9+
sourceCompatibility = 1.8
10+
targetCompatibility = 1.8
11+
12+
repositories {
13+
jcenter()
14+
mavenLocal()
15+
mavenCentral()
16+
17+
maven { url 'http://repo.spring.io/libs-release' }
18+
maven { url "http://repo.springsource.org/repo" } // for springloaded
19+
}
20+
21+
dependencies {
22+
// compile "org.springframework.boot:spring-boot-devtools"
23+
// compile("org.springframework.boot:spring-boot-starter-web")
24+
// compile "com.domingosuarez.boot:spring-boot-starter-jade4j:0.3.0"
25+
compile 'org.springframework:spring-context:4.2.1.RELEASE'
26+
compile 'org.springframework:spring-webmvc:4.1.7.RELEASE'
27+
compile 'org.springframework.security:spring-security-config:3.2.7.RELEASE'
28+
compile 'org.springframework.security:spring-security-web:3.2.7.RELEASE'
29+
30+
compile 'org.thymeleaf:thymeleaf-spring4:+'
31+
compile 'org.thymeleaf.extras:thymeleaf-extras-springsecurity3:+'
32+
33+
//persistence
34+
compile 'com.zaxxer:HikariCP:+'
35+
compile 'org.springframework:spring-orm:+'
36+
compile 'org.hibernate:hibernate-entitymanager:+'
37+
compile 'javax.el:javax.el-api:+'
38+
compile 'org.hsqldb:hsqldb:+'
39+
40+
// view
41+
compile 'de.neuland-bfi:spring-jade4j:0.4.2'
42+
compile 'org.pegdown:pegdown:1.6.0'
43+
44+
// spring data
45+
compile 'org.springframework.data:spring-data-jpa:+'
46+
compile 'org.springframework.data:spring-data-mongodb:+'
47+
48+
// MySQL
49+
compile 'mysql:mysql-connector-java:+'
50+
51+
// Validation
52+
compile 'org.hibernate:hibernate-validator:+'
53+
54+
// Logging
55+
compile 'ch.qos.logback:logback-classic:1.1.3'
56+
compile 'org.slf4j:slf4j-api:+'
57+
compile 'org.apache.commons:commons-lang3:+'
58+
59+
// @Inject
60+
compile 'javax.inject:javax.inject:+'
61+
62+
// JSON
63+
compile 'com.fasterxml.jackson.core:jackson-databind:2.4.1.3'
64+
compile 'com.fasterxml.jackson.core:jackson-annotations:2.4.1'
65+
66+
// Utilities
67+
compile 'com.google.guava:guava:+'
68+
69+
// static resources, ref. http://www.webjars.org/
70+
compile 'org.webjars:jquery:2.1.4'
71+
compile 'org.webjars:bootstrap:3.3.5'
72+
compile 'org.webjars:font-awesome:4.3.0-3'
73+
compile 'org.webjars:angularjs:1.4.4'
74+
compile 'org.webjars:bootstrap-select:1.7.3-1'
75+
compile 'org.webjars:ace:1.2.0'
76+
77+
// compile 'org.webjars:d3js:3.5.6'
78+
// compile 'org.webjars.npm:jointjs:0.9.4'
79+
80+
// test
81+
testCompile 'junit:junit:+'
82+
testCompile 'org.mockito:mockito-core:+'
83+
testCompile 'org.assertj:assertj-core:+'
84+
testCompile 'org.hamcrest:hamcrest-core:+'
85+
testCompile 'org.hamcrest:hamcrest-library:+'
86+
testCompile 'org.objenesis:objenesis:+'
87+
testCompile 'org.springframework:spring-test:+'
88+
89+
compile 'javax.servlet:jstl:1.2'
90+
91+
//include in compile only, exclude in the war
92+
providedCompile 'javax.servlet:servlet-api:2.5'
93+
}
94+
95+
//Gretty Embedded Jetty
96+
buildscript {
97+
repositories {
98+
jcenter()
99+
}
100+
101+
dependencies {
102+
classpath 'org.akhikhl.gretty:gretty:+'
103+
classpath 'org.springframework:springloaded:1.2.4.RELEASE'
104+
classpath "org.springframework.boot:spring-boot-gradle-plugin:1.3.0.M5"
105+
}
106+
}
107+
108+
// Don't use Jetty8, even it's a servlet 3.0+ container,
109+
// but not support non-jar WebApplicationInitializer scanning.
110+
// It will cause "No Spring WebApplicationInitializer types detected on classpath"
111+
gretty {
112+
port = 8080
113+
contextPath = ''
114+
servletContainer = 'jetty9' //tomcat7 or tomcat8
115+
}

docker/run.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# docker run --name mysql -e MYSQL_ROOT_PASSWORD=root -d mysql:latest
2+
3+
docker run -p 8080:8080 --link mysql:mysql \
4+
-v /Users/Raysmond/Projects/Lab/SeGA/TaskViewer/build/libs:/opt/jetty/webapps niaquinto/jetty

0 commit comments

Comments
 (0)
X Tutup