-
Notifications
You must be signed in to change notification settings - Fork 0
/
README
125 lines (78 loc) · 3.02 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
Introduction
============
SharePast was intented to be a social project allowing people to
share information with friends about events occured some time ago.
It was statred mostly as a technical curiosity to play with
Spring, Grails, Sitemesh and a bunch of other open source projects.
Currently this projects includes the following technologies:
0) Maven for build and dep management
1) Hierirchal configuration (based on property files)
2) Groovy based Logback configuration
3) Run-time discovery Spring Bootstrap Mechanism (Google Reflections)
4) Spring Security integration
5) Spring integration with Grails
6) Runtime Grails conviguration through Spring beans
7) Hibernate DAO layer (over C3P0)
8) AspectJ compile time class weaving
9) Automatic mock data setup for different environemnts (Liquibase)
10) Basic Grails application
11) Many more, which I probably forgot
The project is fully working and ca be started up. Instructions on how to build and run bellow.
This project can be used as a reference point and a learning tutorial for misc aspects of Spring,
Grails, Hibernate... I spend a lot of time debugging though all of those frameworks to make it all work,
so hopefully it will help you to save some of your time.
If you have any questions regarding this project, feel free to email me at [email protected] (Konstantin Pelykh)
License (See LICENSE file for full license)
===========================================
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Hierarchy
=========
sharepast.com/
sharepast-project/
Contains project files, web ui, scripts for building
sp-db-changes/
Contains liquibase scripts to populated database
sp-dev-config/
Contains maven and nexus configuration
sp-parent-pom/
Contains Maven parent POM file for the project
geoip/
Contains GeoIP database
Requirements
============
[Maven 3] http://maven.apache.org/download.cgi
These libraries are open source and may be freely obtained, but they are not
provided as a part of this distribution.
Helpful tips:
MAVEN_OPTS="-Xmx2g -XX:MaxPermSize=512m"
To build
========
1) Install sp-db-changes to local Maven repo:
cd sp-db-changes
mvn clean install
2) Install sp-parent-pom
cd sp-parent-pom
mvn clean install
3) Install geoip
cd geoip
mvn clean install
4) Build SharePast project
cd sharepast-project
mvn clean install
Configure options
=================
To skip tests use -DskipTests=true, eg.
mvn clean install -DskipTests=true
Run
===
cd sharepast-project/sp-container
mvn -Pweb
Point your browser to http://localhost:9090