You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[](https://gitter.im/jooby-project/jooby?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
[Jooby](http://jooby.org) a scalable, fast and modular micro web framework for Java.
10
+
[Jooby](http://jooby.org) a scalable, fast and modular micro web framework for Java, [JavaScript](http://jooby.org/doc/lang-js) and [Kotlin](http://jooby.org/doc/lang-kotlin).
12
11
13
12
***Simple, effective and easy to learn**. Ideal for small but also large scale applications.
14
13
@@ -40,7 +39,7 @@ public class App extends Jooby {
40
39
41
40
```
42
41
43
-
[Kotlin](/jooby-lang-kotlin):
42
+
[Kotlin](http://jooby.org/doc/lang-kotlin):
44
43
45
44
```kotlin
46
45
@@ -56,7 +55,7 @@ fun main(args: Array<String>) {
56
55
57
56
```
58
57
59
-
[JavaScript](/jooby-lang-js):
58
+
[JavaScript](http://jooby.org/doc/lang-js):
60
59
61
60
```js
62
61
@@ -66,11 +65,10 @@ app.get('/', function () 'Hey Jooby!');
66
65
67
66
```
68
67
69
-
## Foundthis project useful :heart:
68
+
## foundthis project useful :heart:
70
69
71
70
*Support by clicking the :star: button on the upper right of this page. :v:
72
71
73
-
74
72
## killer features
75
73
76
74
***Multi-language**.Write your application in Java, [Kotlin](https://github.com/jooby-project/jooby/tree/master/jooby-lang-kotlin) or [JavaScript](https://github.com/jooby-project/jooby/tree/master/jooby-lang-js)
@@ -84,140 +82,6 @@ app.get('/', function () 'Hey Jooby!');
Just paste this into a terminal (make sure [Java8](http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html) and [Maven 3.x](http://maven.apache.org/download.cgi) are installed):
You should see something similar to this at the end of the output:
120
-
121
-
```bash
122
-
INFO [2015-03-1921:34:00,365] Hotswap available on: [my-app/public, my-app/conf, my-app/target/classes]
123
-
INFO [2015-03-1921:34:00,368] includes: [**/*.class,**/*.conf,**/*.properties]
124
-
INFO [2015-03-19 21:34:00,369] excludes: []
125
-
INFO [2015-03-19 21:34:00,937] [dev@netty]: App server started in 502ms
126
-
127
-
GET / [*/*] [*/*] (anonymous)
128
-
129
-
listening on:
130
-
http://0.0.0.0:8080/
131
-
```
132
-
133
-
**Jooby**! is up and running!
134
-
135
-
getting started
136
-
=====
137
-
138
-
exploring the newly created project
139
-
-----
140
-
141
-
A new directory was created: ```my-app```. Let's see what it looks like:
142
-
143
-
```bash
144
-
.
145
-
├── public
146
-
| └── (empty)
147
-
├── conf
148
-
| ├── application.conf
149
-
| └── logback.xml
150
-
└── src
151
-
├── main
152
-
| └── java
153
-
| └── com
154
-
| └── mycompany
155
-
| └── App.java
156
-
└── test
157
-
└── java
158
-
└── com
159
-
└── mycompany
160
-
└── AppTest.java
161
-
```
162
-
163
-
The **public** folder contains static content like ```*.html```, ```*.js```, ```*.css```, ..., ```*.png``` files.
164
-
165
-
The **conf** folder contains ```*.conf```.
166
-
167
-
The **src/main/java** folder contains ```*.java``` files (of course).
168
-
169
-
The **src/test/java** folder contains unit and integration tests.
170
-
171
-
> **NOTE**: The ```public``` and ```conf``` folders are part of the classpath.
172
-
173
-
### App.java
174
-
175
-
176
-
```java
177
-
178
-
import org.jooby.Jooby;
179
-
180
-
public class App extends Jooby { // 1
181
-
182
-
{
183
-
// 2
184
-
get("/", () -> "Hello World!");
185
-
}
186
-
187
-
public static void main(final String[] args) {
188
-
run(App::new, args); // 3. start the application.
189
-
}
190
-
191
-
}
192
-
193
-
```
194
-
195
-
Steps involved are:
196
-
197
-
1) extend Jooby
198
-
199
-
2) define some routes
200
-
201
-
3) call the ```run``` method
202
-
203
-
running
204
-
-----
205
-
206
-
Open a console and type:
207
-
208
-
mvn jooby:run
209
-
210
-
The maven plugin will compile the code (if necessary) and start the application.
211
-
212
-
Of course, you can generate the IDE metadata from Maven or import as a Maven project in your favorite IDE.
213
-
Afterwards, all you have to do is run the: ```App.java``` class. After all, this is a plain Java application with a ```main``` method.
214
-
215
-
where to go now?
216
-
-----
217
-
218
-
* read the [documentation](/doc)
219
-
* check out one of the [starter projects](https://github.com/search?q=topic%3Astarter+org%3Ajooby-project&type=Repositories)
220
-
221
85
want to contribute?
222
86
=====
223
87
@@ -232,24 +96,6 @@ want to contribute?
232
96
*Please suggest changes to javadoc/exception messages when you find something unclear.
233
97
*If you have problems with documentation, find it non intuitive or hard to follow - let us know about it, we'll try to make it better according to your suggestions. Any constructive critique is greatly appreciated. Don't forget that this is an open source project developed and documented in spare time.
[](https://gitter.im/jooby-project/jooby?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
* Please suggest changes to javadoc/exception messages when you find something unclear.
29
26
* If you have problems with documentation, find it non intuitive or hard to follow - let us know about it, we'll try to make it better according to your suggestions. Any constructive critique is greatly appreciated. Don't forget that this is an open source project developed and documented in spare time.
Copy file name to clipboardExpand all lines: doc/jooby-post.md
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,3 +1,7 @@
1
+
## found this project useful :heart:
2
+
3
+
* Support by clicking the :star: button on the upper right of this page. :v:
4
+
1
5
## killer features
2
6
3
7
***Multi-language**. Write your application in Java, [Kotlin](https://github.com/jooby-project/jooby/tree/master/jooby-lang-kotlin) or [JavaScript](https://github.com/jooby-project/jooby/tree/master/jooby-lang-js)
Copy file name to clipboardExpand all lines: doc/jooby-pre.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
# ∞ do more, more easily
2
2
3
-
[Jooby](http://jooby.org) a scalable, fast and modular micro web framework for Java.
3
+
[Jooby](http://jooby.org) a scalable, fast and modular micro web framework for Java, [JavaScript](http://jooby.org/doc/lang-js) and [Kotlin](http://jooby.org/doc/lang-kotlin).
4
4
5
5
***Simple, effective and easy to learn**. Ideal for small but also large scale applications.
Copy file name to clipboardExpand all lines: doc/kotlin.md
+35-1Lines changed: 35 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
# kotlin
2
2
3
-
{{jooby}} provides a tiny module with some functions that will make an application more Kotlin idiomatic.
3
+
A tiny module that makes a Jooby application more Kotlin idiomatic.
4
4
5
5
## dependency
6
6
@@ -14,6 +14,8 @@
14
14
15
15
## usage
16
16
17
+
via run function:
18
+
17
19
```java
18
20
19
21
importorg.jooby.*
@@ -30,6 +32,23 @@ fun main(args: Array<String>) {
30
32
31
33
The `run` function is a [type-safe builder](http://kotlinlang.org/docs/reference/type-safe-builders.html) that initializes, configures and executes a {{jooby}} application.
0 commit comments