File tree Expand file tree Collapse file tree 4 files changed +78
-4
lines changed Expand file tree Collapse file tree 4 files changed +78
-4
lines changed Original file line number Diff line number Diff line change @@ -17,20 +17,24 @@ This project is currently work in progress.
17
17
## code structure
18
18
19
19
* ewarp-core
20
-
21
20
Core module containing the runtime handling, node discovery, ...
21
+
22
22
* ewarp-web
23
23
24
24
Web runtime adapter to start Erjang in a Java Servlet container, e.g. Tomcat
25
+
26
+ * ewarp-web-bridge
27
+
28
+ Bridges HTTP requests into the Erlang code. Uses [simple_bridge](https://github.com/nitrogen/simple_bridge) on the inside
29
+
25
30
* ewarp-example-web
26
31
27
32
Sample application
28
- * ewarp-web-bridge (planned)
29
33
30
- Bridges HTTP requests into the Erlang code
31
34
* ewarp-aws (planned)
32
35
33
36
Node discovery and advertising in a Amazon EC2/Elastic Beanstalk environment
37
+
34
38
* ewarp-osgi (planned)
35
39
36
40
Runtime adapter to start Erjang in an OSGi environment, e.g. Eclipse Equinox or Apache Felix
Original file line number Diff line number Diff line change
1
+ # ewarp web bridge: Bridges HTTP requests into the Erlang code
2
+
3
+
4
+ ## Web bridge
5
+
6
+ * Uses [ simple_bridge] ( https://github.com/nitrogen/simple_bridge ) and ``` servlet_bridge ``` companion project on the inside
7
+ * Servlet filters and routes incoming requests
8
+ * Any web framework supporting simple_bridge can be used (or none at all for simple projects)
9
+
10
+ ## Configuration
11
+
12
+ ** TODO** web.xml fragment, configuration options
13
+
14
+ ## How to use
15
+
16
+ ** Note** : as this is work in progress, there are not yet full instructions...
17
+
18
+ 1 . Get and build Erjang from GitHub:
19
+
20
+ git clone https://github.com/trifork/erjang.git
21
+ cd erjang
22
+ ant jar otpjar
23
+
24
+ 2 . Get and build ewarp from GitHub:
25
+ Build using [ Gradle] ( http://www.gradle.org/ ) , which is downloaded automatically, when called as ./gradlew
26
+
27
+ git clone https://github.com/jetztgradnet/ewarp.git
28
+ cd ewarp
29
+ ./gradlew war
30
+
31
+ 3 . Upload the created .WAR-file (` build/libs/ewarp-0.1.war ` ) to your Servlet container (e.g. Tomcat or Jetty)
32
+ The Gradle-based build allows to run the WAR file inline using the following command:
33
+
34
+ ./gradlew jettyRun
35
+
36
+
Original file line number Diff line number Diff line change
1
+ apply plugin :' java'
2
+ apply plugin :' eclipse'
3
+
4
+ group = ' erjangx'
5
+ version = ' 0.1'
6
+
7
+ repositories {
8
+ // flatDir(dirs: "../erjang/lib")
9
+ mavenCentral()
10
+ }
11
+
12
+ dependencies {
13
+ compile project(' :ewarp-core' )
14
+ compile project(' :ewarp-web' )
15
+
16
+ // servlet api
17
+ compile " javax.servlet:servlet-api:$servletVersion "
18
+
19
+ // logging
20
+ compile " org.slf4j:slf4j-api:$slf4jVersion "
21
+ compile " org.slf4j:jcl-over-slf4j:$slf4jVersion "
22
+
23
+ // erjang, OTP
24
+ compile files(" ../../erjang/erjang-${ erjangVersion} .jar" )
25
+
26
+ // testing
27
+ testCompile group : ' junit' , name : ' junit' , version : ' 4.8.2'
28
+ }
29
+
30
+
31
+ task wrapper (type : Wrapper ) {
32
+ gradleVersion = ' 1.0-milestone-4'
33
+ }
Original file line number Diff line number Diff line change 1
1
[
2
2
' ewarp-core' ,
3
3
' ewarp-web' ,
4
+ ' ewarp-web-bridge' ,
4
5
' ewarp-example-web' ,
5
6
]. each { project ->
6
7
include project
7
- }
8
+ }
You can’t perform that action at this time.
0 commit comments