Skip to content

Commit fb05cc0

Browse files
committed
initial version
1 parent 8748ab3 commit fb05cc0

File tree

13 files changed

+711
-0
lines changed

13 files changed

+711
-0
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
target
2+
*.iml
3+
logs

data/credentials.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"//": "lines with // keys are just comments (we don't have real comments in json)",
3+
"//": "this file stores password passed through md5+bcrypt hash",
4+
"//": "you can use `restx hash md5+bcrypt {password}` shell command to get hashed passwords to put here",
5+
6+
"//": "to help startup with restx, there are comments with clear text passwords,",
7+
"//": "which should obviously not be stored here.",
8+
"user1": "$2a$10$iZluFUJShbjb1ue68bLrDuGCeJL9EMLHelVIf8u0SUbCseDOvKnoe",
9+
"//": "user 1 password is 'user1-pwd'",
10+
"user2": "$2a$10$oym3SYMFXf/9gGfDKKHO4eM1vWNqAZMsRZCL.BORCaP4yp5cdiCXu",
11+
"//": "user 2 password is 'user2-pwd'"
12+
}

data/users.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
[
2+
{"name":"user1", "roles": []},
3+
{"name":"user2", "roles": []}
4+
]

md.restx.json

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
{
2+
"module": "io.restx:stats.restx.io:0.1-SNAPSHOT",
3+
"packaging": "war",
4+
5+
"properties": {
6+
"java.version": "1.7",
7+
"restx.version": "0.32"
8+
},
9+
"dependencies": {
10+
"compile": [
11+
"io.restx:restx-core:${restx.version}",
12+
"io.restx:restx-security-basic:${restx.version}",
13+
"io.restx:restx-core-annotation-processor:${restx.version}",
14+
"io.restx:restx-factory:${restx.version}",
15+
"io.restx:restx-jongo:${restx.version}",
16+
"io.restx:restx-factory-admin:${restx.version}",
17+
"io.restx:restx-logs-admin:${restx.version}",
18+
"io.restx:restx-monitor-admin:${restx.version}",
19+
"io.restx:restx-server-jetty:${restx.version}",
20+
"io.restx:restx-apidocs:${restx.version}",
21+
"io.restx:restx-specs-admin:${restx.version}",
22+
"io.restx:restx-admin:${restx.version}",
23+
"ch.qos.logback:logback-classic:1.0.13"
24+
],
25+
"test": [
26+
"io.restx:restx-specs-tests:${restx.version}",
27+
"junit:junit:4.11"
28+
]
29+
}
30+
}

module.ivy

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
<ivy-module version="2.0" xmlns:ea="http://www.easyant.org">
2+
<info organisation="io.restx" module="stats.restx.io" revision="0.1" status="integration">
3+
<ea:build organisation="org.apache.easyant.buildtypes" module="build-webapp-java" revision="0.9"
4+
compile.java.source.version="1.7"
5+
compile.java.target.version="1.7"
6+
/>
7+
</info>
8+
<configurations>
9+
<conf name="default"/>
10+
<conf name="runtime"/>
11+
<conf name="test"/>
12+
</configurations>
13+
<publications>
14+
<artifact type="war"/>
15+
</publications>
16+
<dependencies>
17+
<dependency org="io.restx" name="restx-core" rev="0.32" conf="default" />
18+
<dependency org="io.restx" name="restx-security-basic" rev="0.32" conf="default" />
19+
<dependency org="io.restx" name="restx-core-annotation-processor" rev="0.32" conf="default" />
20+
<dependency org="io.restx" name="restx-factory" rev="0.32" conf="default" />
21+
<dependency org="io.restx" name="restx-jongo" rev="0.32" conf="default" />
22+
<dependency org="io.restx" name="restx-factory-admin" rev="0.32" conf="default" />
23+
<dependency org="io.restx" name="restx-logs-admin" rev="0.32" conf="default" />
24+
<dependency org="io.restx" name="restx-monitor-admin" rev="0.32" conf="default" />
25+
<dependency org="io.restx" name="restx-server-jetty" rev="0.32" conf="default" />
26+
<dependency org="io.restx" name="restx-apidocs" rev="0.32" conf="default" />
27+
<dependency org="io.restx" name="restx-specs-admin" rev="0.32" conf="default" />
28+
<dependency org="io.restx" name="restx-admin" rev="0.32" conf="default" />
29+
<dependency org="ch.qos.logback" name="logback-classic" rev="1.0.13" conf="default" />
30+
<dependency org="io.restx" name="restx-specs-tests" rev="0.32" conf="test->default" />
31+
<dependency org="junit" name="junit" rev="4.11" conf="test->default" />
32+
</dependencies>
33+
</ivy-module>

pom.xml

Lines changed: 98 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,98 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<project xmlns="http://maven.apache.org/POM/4.0.0"
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
5+
<modelVersion>4.0.0</modelVersion>
6+
7+
<groupId>io.restx</groupId>
8+
<artifactId>stats.restx.io</artifactId>
9+
<version>0.1-SNAPSHOT</version>
10+
<packaging>war</packaging>
11+
<name>stats.restx.io</name>
12+
13+
<properties>
14+
<maven.compiler.target>1.7</maven.compiler.target>
15+
<maven.compiler.source>1.7</maven.compiler.source>
16+
<restx.version>0.32</restx.version>
17+
</properties>
18+
19+
<dependencies>
20+
<dependency>
21+
<groupId>io.restx</groupId>
22+
<artifactId>restx-core</artifactId>
23+
<version>${restx.version}</version>
24+
</dependency>
25+
<dependency>
26+
<groupId>io.restx</groupId>
27+
<artifactId>restx-security-basic</artifactId>
28+
<version>${restx.version}</version>
29+
</dependency>
30+
<dependency>
31+
<groupId>io.restx</groupId>
32+
<artifactId>restx-core-annotation-processor</artifactId>
33+
<version>${restx.version}</version>
34+
</dependency>
35+
<dependency>
36+
<groupId>io.restx</groupId>
37+
<artifactId>restx-factory</artifactId>
38+
<version>${restx.version}</version>
39+
</dependency>
40+
<dependency>
41+
<groupId>io.restx</groupId>
42+
<artifactId>restx-jongo</artifactId>
43+
<version>${restx.version}</version>
44+
</dependency>
45+
<dependency>
46+
<groupId>io.restx</groupId>
47+
<artifactId>restx-factory-admin</artifactId>
48+
<version>${restx.version}</version>
49+
</dependency>
50+
<dependency>
51+
<groupId>io.restx</groupId>
52+
<artifactId>restx-logs-admin</artifactId>
53+
<version>${restx.version}</version>
54+
</dependency>
55+
<dependency>
56+
<groupId>io.restx</groupId>
57+
<artifactId>restx-monitor-admin</artifactId>
58+
<version>${restx.version}</version>
59+
</dependency>
60+
<dependency>
61+
<groupId>io.restx</groupId>
62+
<artifactId>restx-server-jetty</artifactId>
63+
<version>${restx.version}</version>
64+
</dependency>
65+
<dependency>
66+
<groupId>io.restx</groupId>
67+
<artifactId>restx-apidocs</artifactId>
68+
<version>${restx.version}</version>
69+
</dependency>
70+
<dependency>
71+
<groupId>io.restx</groupId>
72+
<artifactId>restx-specs-admin</artifactId>
73+
<version>${restx.version}</version>
74+
</dependency>
75+
<dependency>
76+
<groupId>io.restx</groupId>
77+
<artifactId>restx-admin</artifactId>
78+
<version>${restx.version}</version>
79+
</dependency>
80+
<dependency>
81+
<groupId>ch.qos.logback</groupId>
82+
<artifactId>logback-classic</artifactId>
83+
<version>1.0.13</version>
84+
</dependency>
85+
<dependency>
86+
<groupId>io.restx</groupId>
87+
<artifactId>restx-specs-tests</artifactId>
88+
<version>${restx.version}</version>
89+
<scope>test</scope>
90+
</dependency>
91+
<dependency>
92+
<groupId>junit</groupId>
93+
<artifactId>junit</artifactId>
94+
<version>4.11</version>
95+
<scope>test</scope>
96+
</dependency>
97+
</dependencies>
98+
</project>

0 commit comments

Comments
 (0)