Skip to content

Commit 2dc7d5c

Browse files
phasenraum2010phasenraum2010
authored andcommitted
changed propeterties
1 parent 210b7f7 commit 2dc7d5c

File tree

26 files changed

+668
-38
lines changed

26 files changed

+668
-38
lines changed

README.md

Lines changed: 106 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,26 @@
1-
# learn-neo4j with spring-boot
1+
# [learn-neo4j](https://github.com/phasenraum2010/learn-neo4j) GraphDB with spring-boot
22

3-
## running on localhost
4-
5-
* [running on localhost learn-neo4j]
6-
* [running on localhost neo4j]
7-
* [running on localhost artifactory]
8-
* [running on localhost phpmyadmin]
9-
10-
## doc
3+
[![Build Status](https://travis-ci.org/phasenraum2010/btw17kandidaten.svg?branch=master)](https://travis-ci.org/phasenraum2010/btw17kandidaten)
114

12-
### neo4j
5+
## running on localhost
6+
* This Application: [running on localhost learn-neo4j]
7+
* GraphDB neo4j Web Console [running on localhost neo4j]
8+
* Maven Artifactory [running on localhost artifactory]
139

10+
## neo4j
11+
### neo4j Intro
1412
* [Neo4j 3.3 Docs]
1513
* [introducing-neo4j-bloom-graph-data-visualization-for-everyone]
1614
* [getting-started-graph-databases-using-neo4j]
15+
16+
### Cypher (neo4j Graph Query Language):
1717
* [Test-Drive Neo4j with Cypher]
1818

1919
### OGM Object Graph Mapping
20+
* OGM: [Neo4j 3.3 Docs]
2021

21-
* [Neo4j 3.3 Docs]
22-
22+
## Spring
2323
### spring-boot
24-
2524
* [spring-boot Starter]
2625
* [spring-boot]
2726
* [spring-boot-sample-data-neo4j]
@@ -33,22 +32,25 @@
3332
* [spring-boot-sample-batch]
3433
* [spring-boot-sample-integration]
3534

36-
### Frontend
37-
35+
## Frontend
3836
* [thymeleaf]
3937
* [bootstrap]
4038
* [font awesome icons]
4139
* [popper.js.org]
40+
* map-icons
41+
* webjars
4242

4343

4444
[running on localhost neo4j]:http://localhost:7474/ (neo4j-localhost)
4545
[running on localhost learn-neo4j]:http://localhost:8080/ (learn-neo4j-localhost)
4646
[running on localhost artifactory]:http://localhost:8081/ (artifactory-localhost)
4747
[running on localhost phpmyadmin]:http://localhost/phpmyadmin/ (phpmyadmin-localhost)
48+
4849
[introducing-neo4j-bloom-graph-data-visualization-for-everyone]:https://neo4j.com/blog/introducing-neo4j-bloom-graph-data-visualization-for-everyone/ (introducing-neo4j-bloom-graph-data-visualization-for-everyone)
4950
[getting-started-graph-databases-using-neo4j]:https://neo4j.com/graphacademy/online-training/getting-started-graph-databases-using-neo4j/ (getting-started-graph-databases-using-neo4j)
5051
[Test-Drive Neo4j with Cypher]:https://neo4j.com/developer/ (Test-Drive Neo4j with Cypher)
5152
[Neo4j 3.3 Docs]:https://neo4j.com/docs/ (Neo4j 3.3 Docs)
53+
5254
[spring-boot Starter]:https://start.spring.io/ (spring-boot Starter)
5355
[spring-boot]:https://projects.spring.io/spring-boot/ (spring-boot)
5456
[Getting Started Building an Application with Spring Boot]:https://spring.io/guides/gs/spring-boot/ (Getting Started: Building an Application with Spring Boot)
@@ -60,7 +62,96 @@
6062
[spring-boot-sample-data-jpa]:https://github.com/spring-projects/spring-boot/tree/master/spring-boot-samples/spring-boot-sample-data-jpa (spring-boot-sample-data-jpa)
6163
[spring-boot-sample-batch]:https://github.com/spring-projects/spring-boot/tree/master/spring-boot-samples/spring-boot-sample-batch (spring-boot-sample-batch)
6264
[spring-boot-sample-data-neo4j]:https://github.com/spring-projects/spring-boot/tree/master/spring-boot-samples/spring-boot-sample-data-neo4j (spring-boot-sample-data-neo4j)
65+
6366
[thymeleaf]:https://www.thymeleaf.org/ (thymeleaf)
6467
[bootstrap]:http://getbootstrap.com/ (bootstrap)
6568
[font awesome icons]:https://fontawesome.com/icons?d=gallery&m=free (font awesome icons)
6669
[popper.js.org]:https://popper.js.org/ (popper.js.org)
70+
71+
## Contribute
72+
73+
### Fork, patch and contribute code
74+
75+
Feel free to fork btw17kandidaten [Git repository at GitHub][learn-neo4j-github] for your own use and
76+
updates.
77+
78+
Contribute your fixes and new features back to the main codebase using
79+
[GitHub pull requests][github-pull-req].
80+
81+
[learn-neo4j-github]: https://github.com/phasenraum2010/learn-neo4j/
82+
[github-pull-req]: http://help.github.com/articles/using-pull-requests
83+
84+
### Issues (bug and feature tracker)
85+
86+
Please report any bugs found, feature requests or other issues on
87+
[learn-neo4j GitHub tracker][learn-neo4j-issues].
88+
89+
When creating a new issue, try following [necolas's guidelines][issue-guidelines].
90+
91+
[learn-neo4j-issues]: https://github.com/phasenraum2010/learn-neo4j/issues
92+
[issue-guidelines]: http://github.com/necolas/issue-guidelines/#readme
93+
94+
### Support
95+
96+
Let me know if you are using App. I may get around to creating a showcase page listing user sites.
97+
98+
[Contact me][av-site] if you have questions about btw17kandidaten, or just like to say something about it.
99+
If you _really really_ like it and want to support the author, I will be glad to
100+
[accept a small donation][donate].
101+
102+
[av-site]: https://twitter.com/ThomasWoehlke
103+
[donate]: https://www.paypal.me/ThomasWoehlke
104+
105+
### Author
106+
107+
**Thomas Wöhlke**
108+
+ Twitter: [https://twitter.com/ThomasWoehlke](https://twitter.com/port80guru)
109+
+ Github: [https://github.com/phasenraum2010](https://github.com/phasenraum2010)
110+
+ Blog: [https://thomas-woehlke.blogspot.de](https://thomas-woehlke.blogspot.de)
111+
112+
### Acknowledgements
113+
114+
+ btw17 Frontend is built on [Bootstrap][bootstrap].
115+
+ These include icons from [Glyphicons][glyphicons] and web fonts from [Google][webfonts].
116+
+ JavaScript goodies with [jQuery][jquery].
117+
+ More icons by [fontawesome][fontawesome].
118+
+ Google Maps JavaScript API [google-maps-javascript-api][google-maps-javascript-api]
119+
+ Google Analytics [google-analytics][google-analytics]
120+
+ Serverside is made with [Java][java] and [Spring-Boot][spring-boot].
121+
+ Spring Frameworks used: [spring-web-mvc][spring-web-mvc] [JPA][spring-data-jpa], [Security][spring-security]
122+
+ HTML Templating: [Thymeleaf][thymeleaf]
123+
+ Database [PostgreSQL][postgresql] and jdbc by [PostgreSQL-JDBC][postgresql-jdbc].
124+
+ Continous Integration with [Travis-CI][travis-ci]
125+
+ Scalable Operating on Cloud-Service in Zone EU [Heroku][heroku] with [Heroku PostegreSQL][postgresql-heroku].
126+
127+
[java]: http://www.oracle.com/technetwork/java/javase/downloads/index.html
128+
[fontawesome]: http://fontawesome.io/icons/
129+
[postgresql-jdbc]: https://jdbc.postgresql.org/
130+
[postgresql]: https://www.postgresql.org/
131+
[postgresql-pgadmin4]: https://www.pgadmin.org/
132+
[heroku]: https://heroku.com/
133+
[travis-ci]: https://travis-ci.org/
134+
[postgresql-heroku]: https://devcenter.heroku.com/categories/heroku-postgres/
135+
[spring-web-mvc]: http://projects.spring.io/spring-framework/
136+
[spring-boot]: https://projects.spring.io/spring-boot/
137+
[spring-data-jpa]: http://projects.spring.io/spring-data-jpa/
138+
[spring-security]: http://projects.spring.io/spring-security/
139+
[thymeleaf]: http://www.thymeleaf.org/doc/tutorials/2.1/thymeleafspring.html
140+
[bootstrap]: https://getbootstrap.com/docs/3.3/
141+
[glyphicons]: http://glyphicons.com/
142+
[webfonts]: http://www.google.com/webfonts/
143+
[jquery]: http://jquery.org
144+
[google-analytics]: https://analytics.google.com/analytics/web/
145+
[google-maps-javascript-api]: https://developers.google.com/maps/documentation/javascript/
146+
[interaktiv-morgenpost-de-kandidaten-bundestagswahl-2017]: https://interaktiv.morgenpost.de/kandidaten-bundestagswahl-2017/
147+
148+
### Copyright and license
149+
150+
© 2018 Thomas Wöhlke for the Software at [Github](https://github.com/phasenraum2010/learn-neo4j)
151+
152+
Licensed under the **Apache License, Version 2.0**
153+
154+
[http://www.apache.org/licenses/LICENSE-2.0](http://www.apache.org/licenses/LICENSE-2.0)
155+
156+
Except where otherwise noted, Documentation of this work is licensed under
157+
[Creative Commons CC BY-ND 3.0](http://creativecommons.org/licenses/by-nd/3.0/)

run.cmd

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,9 @@
1+
set GRAPH_DB_GOOGLE_APS_API_KEY=AIzaSyCMWLD6SK1QY3f-94mDS6x7u_jxwYASgqY
2+
set GRAPH_DB_GOOGLE_ANALYTICS_ID=UA-17174370-11
3+
set GRAPH_DB_GOOGLE_WEBMASTER_TOOLS_ID=3eksTC3Rvao6fLvSUwoRECBwd9Gdg4F51IhOE3DD-T8
4+
set GRAPH_DB_MICROSOFT_WEBMASTER_TOOLS_ID=52F1EDC0244BCDCF5C95E402E9E3E49B
5+
set GRAPH_DB_FACEBOOK_APP_ID=1721279777913278
6+
set GRAPH_DB_TWITTER_CARD_SITE=@port80guru
7+
set GRAPH_DB_TWITTER_CARD_CREATOR=@port80guru
8+
19
mvnw.cmd clean spring-boot:run
Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,25 @@
11
package org.woehlke.learn.learnneo4j;
22

3-
43
import org.springframework.boot.SpringApplication;
54
import org.springframework.boot.autoconfigure.SpringBootApplication;
5+
import org.springframework.boot.context.properties.EnableConfigurationProperties;
66
import org.springframework.data.web.config.EnableSpringDataWebSupport;
7-
7+
import org.woehlke.learn.learnneo4j.configuration.MyApplicationProperties;
8+
import org.woehlke.learn.learnneo4j.configuration.properties.*;
89

910
@SpringBootApplication
11+
@EnableConfigurationProperties({
12+
MyApplicationProperties.class,
13+
MyHibernateProperties.class,
14+
MyInfoProperties.class,
15+
MyManagementProperties.class,
16+
MyServerProperties.class,
17+
MySpringBootProperties.class
18+
})
1019
@EnableSpringDataWebSupport
1120
public class LearnNeo4jApplication {
1221

1322
public static void main(String[] args) {
1423
SpringApplication.run(LearnNeo4jApplication.class, args);
1524
}
16-
1725
}

src/main/java/org/woehlke/learn/learnneo4j/configuration/MyApplicationProperties.java

Lines changed: 122 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
import org.springframework.stereotype.Component;
55
import org.springframework.validation.annotation.Validated;
66

7+
import javax.validation.Valid;
78
import javax.validation.constraints.NotNull;
89
import java.util.List;
910

@@ -28,6 +29,106 @@ public class MyApplicationProperties {
2829
@NotNull
2930
private Boolean createTestDataAtStartup;
3031

32+
@NotNull
33+
private String pageSubTitle;
34+
35+
@Valid
36+
private Seo seo = new Seo();
37+
38+
@Validated
39+
public static class Seo {
40+
41+
@NotNull
42+
private String googleMapsApiKey;
43+
44+
@NotNull
45+
private String googleAnalyticsKey;
46+
47+
@NotNull
48+
private String twitterCardSite;
49+
50+
@NotNull
51+
private String twitterCardCreator;
52+
53+
@NotNull
54+
private String msvalidateKey;
55+
56+
@NotNull
57+
private String googleSiteVerification;
58+
59+
@NotNull
60+
private String facebookAppId;
61+
62+
public String getGoogleMapsApiKey() {
63+
return googleMapsApiKey;
64+
}
65+
66+
public void setGoogleMapsApiKey(String googleMapsApiKey) {
67+
this.googleMapsApiKey = googleMapsApiKey;
68+
}
69+
70+
public String getGoogleAnalyticsKey() {
71+
return googleAnalyticsKey;
72+
}
73+
74+
public void setGoogleAnalyticsKey(String googleAnalyticsKey) {
75+
this.googleAnalyticsKey = googleAnalyticsKey;
76+
}
77+
78+
public String getTwitterCardSite() {
79+
return twitterCardSite;
80+
}
81+
82+
public void setTwitterCardSite(String twitterCardSite) {
83+
this.twitterCardSite = twitterCardSite;
84+
}
85+
86+
public String getTwitterCardCreator() {
87+
return twitterCardCreator;
88+
}
89+
90+
public void setTwitterCardCreator(String twitterCardCreator) {
91+
this.twitterCardCreator = twitterCardCreator;
92+
}
93+
94+
public String getMsvalidateKey() {
95+
return msvalidateKey;
96+
}
97+
98+
public void setMsvalidateKey(String msvalidateKey) {
99+
this.msvalidateKey = msvalidateKey;
100+
}
101+
102+
public String getGoogleSiteVerification() {
103+
return googleSiteVerification;
104+
}
105+
106+
public void setGoogleSiteVerification(String googleSiteVerification) {
107+
this.googleSiteVerification = googleSiteVerification;
108+
}
109+
110+
public String getFacebookAppId() {
111+
return facebookAppId;
112+
}
113+
114+
public void setFacebookAppId(String facebookAppId) {
115+
this.facebookAppId = facebookAppId;
116+
}
117+
118+
@Override
119+
public String toString() {
120+
return "Seo{" +
121+
"googleMapsApiKey='" + googleMapsApiKey + '\'' +
122+
", googleAnalyticsKey='" + googleAnalyticsKey + '\'' +
123+
", twitterCardSite='" + twitterCardSite + '\'' +
124+
", twitterCardCreator='" + twitterCardCreator + '\'' +
125+
", msvalidateKey='" + msvalidateKey + '\'' +
126+
", googleSiteVerification='" + googleSiteVerification + '\'' +
127+
", facebookAppId='" + facebookAppId + '\'' +
128+
'}';
129+
}
130+
}
131+
31132
public String[] getWebSecurityConfigPublicPathsAsArray() {
32133
int size = webSecurityConfigPublicPaths.size();
33134
String[] myArray = new String[size];
@@ -37,6 +138,14 @@ public String[] getWebSecurityConfigPublicPathsAsArray() {
37138
return myArray;
38139
}
39140

141+
public String getPageSubTitle() {
142+
return pageSubTitle;
143+
}
144+
145+
public void setPageSubTitle(String pageSubTitle) {
146+
this.pageSubTitle = pageSubTitle;
147+
}
148+
40149
public String getFilesystemWorkdir() {
41150
return filesystemWorkdir;
42151
}
@@ -77,12 +186,23 @@ public void setCreateTestDataAtStartup(Boolean createTestDataAtStartup) {
77186
this.createTestDataAtStartup = createTestDataAtStartup;
78187
}
79188

189+
public Seo getSeo() {
190+
return seo;
191+
}
192+
193+
public void setSeo(Seo seo) {
194+
this.seo = seo;
195+
}
196+
80197
@Override
81198
public String toString() {
82-
return "PortinfoProperties{" +
83-
"loginUsername='" + loginUsername + '\'' +
199+
return "MyApplicationProperties{" +
200+
"filesystemWorkdir='" + filesystemWorkdir + '\'' +
201+
", loginUsername='" + loginUsername + '\'' +
84202
", loginPassword='" + loginPassword + '\'' +
85203
", webSecurityConfigPublicPaths=" + webSecurityConfigPublicPaths +
204+
", createTestDataAtStartup=" + createTestDataAtStartup +
205+
", seo=" + seo +
86206
'}';
87207
}
88208
}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
package org.woehlke.learn.learnneo4j.configuration;
2+
3+
import org.woehlke.learn.learnneo4j.frontend.model.PageContent;
4+
5+
public interface PageContentPopulator {
6+
7+
PageContent pageContentSetSTandardValues(String templatePath);
8+
}

0 commit comments

Comments
 (0)