Skip to content

Commit 455823f

Browse files
committed
update readme
1 parent cb0e3bf commit 455823f

File tree

1 file changed

+8
-16
lines changed

1 file changed

+8
-16
lines changed

samples/javalin/README.md

Lines changed: 8 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# Javalin Sample
22

3+
[1-click deploy](https://portal.defang.dev/redirect?url=https%3A%2F%2Fgithub.com%2Fnew%3Ftemplate_name%3Dsample-javalin-template%26template_owner%3DDefangSamples)
4+
35
This sample demonstrates how to deploy a very basic Javalin sample with Defang. The sample simply outputs "Defang x Javalin" on the webpage.
46

57
## Prerequisites
@@ -16,28 +18,18 @@ This sample demonstrates how to deploy a very basic Javalin sample with Defang.
1618

1719
## Development
1820

19-
For development, we use a local container. This can be seen in the compose.yaml document. To make changes to this sample, make sure that you have `openjdk@17` and `maven` installed. To run the sample locally after cloning the repository, you can run it on Docker by using the following command:
20-
21-
1. Navigate to the `app` directory and build the project:
22-
23-
```bash
24-
cd app
25-
mvn clean package
26-
cd ../
27-
```
28-
29-
2. From the project root directory, run:
21+
For development, we use a local container. This can be seen in the compose.yaml file. To run the sample locally use the following command:
3022

31-
```bash
32-
docker compose up --build
33-
```
23+
```bash
24+
docker compose up --build
25+
```
3426

3527
---
3628

3729
Title: Javalin
3830

3931
Short Description: A short hello world application demonstrating how to deploy Javalin onto defang.
4032

41-
Tags: Javalin & Java & Maven
33+
Tags: Javalin, Java, Maven
4234

43-
Languages: java, javalin
35+
Languages: java

0 commit comments

Comments
 (0)