-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME
executable file
·66 lines (53 loc) · 2.25 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
Tech Stack
==========
* java 7 __needs to be installed__
* nodejs __needs to be installed__
* firefox __needs to be installed__
* postgres __needs to be installed__
* spring mvc
* mybatis
* gradle
* junit4
* selenium
Get Started
===========
1. Start postgres server and setup database
* check that the freewheelers superuser exists
run "psql -c '\du'"
* if user does not exist
run "createuser -s freewheelers" (no need to set a password, defaults to 'postgres')
* create database trailblazers
run "./gradlew initdb"
* to add some data
run "psql -h localhost -U freewheelers --password -d trailblazers < db/backup.sql"
2. Check out existing tasks
* go to the project root folder
* ./gradlew tasks
3. Run local build (The first time this may take a while)
* ./gradlew clean build
4. Check testing coverage
* open build/reports/jacoco/test/html/index.html
5. Start the server
* ./gradlew jettyRun
* go to http://localhost:8080/
Set Up Your IntelliJ Project
===========
1. Checkout the code
2. run "./gradlew cleanIdea idea" (The first time this may take a while)
3. Open IntelliJ IDEA
4. Click “Open Project” -> Choose the “twuXXprojX” folder that you just checked out from source control (Or use "File" -> “Open…”)
5. If you see a popup in which IntelliJ wants to use your confidential information in you keychain, click “Allow” or “Always Allow”
6. If you see an error with the Java SDK being set incorrectly, follow the instructions in IntelliJ to set the Project SDK to Java 1.7
7. To verify that the import was successful:
a. Make sure your database is set up and Postgres is running
b. Go to the project root directory, run "./gradlew jettyRun"
c. Run all the tests from IntelliJ
d. If everything is green, you are good to go!
Set Up Remote Debugging
===========
1. Enable debugging and start the server
* export JAVA_OPTS="-Xms512M -Xmx1024M -XX:MaxPermSize=256m -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5005 -noverify"
* ./gradlew jettyRun
2. In IntelliJ, click Run -> Edit Configurations.
3. Create a new configuration + -> Remote -> "Debug FreeWheelers". Accept default settings -> Apply.
4. Run -> Debug 'Debug FreeWheelers'