From 424a40553042f056ead7881d3ae9bc2d3982d60a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=E1=BB=93=20T=C3=B9ng=20Kh=C3=A1nh?= <114287209+hotungkhanh@users.noreply.github.com> Date: Wed, 25 Sep 2024 21:22:51 +1000 Subject: [PATCH] fix: update README.md --- README.md | 45 +++++++++++++++++++++------------------------ 1 file changed, 21 insertions(+), 24 deletions(-) diff --git a/README.md b/README.md index 5292f42..c18fcf3 100644 --- a/README.md +++ b/README.md @@ -1,28 +1,7 @@ -# jetedge +# Jet Edge ## How to run the app -### Running the backend -Move into the backend folder with: -`cd backend` - -Package the project as a JAR file with (only needs to be done once): -`./mvnw package` - -Build the Docker image with (only needs to be done once): -`docker build -f src/main/docker/Dockerfile.jvm -t quarkus/backend-jvm .` - -Run the container with: -`docker run -i --rm -p 8080:8080 quarkus/backend-jvm` - -This will spin up a container for the Quarkus backend ONLY. - -Access backend via: -`http://localhost:8080/` - -Test by checking whether `http://localhost:8080/hello` gets a message from the backend. ### Running the frontend -No container for frontend. - Move into the frontend folder with: `cd frontend` @@ -32,5 +11,23 @@ Install all the packages with (only needs to be done once): Run in development mode with: `npm run dev` -Access frontend via: -`http://localhost:3000/` +Build for production with: +`npm run build` + +Run in production mode: +`npm run preview` + +
+ +### Running the backend +Move into the backend folder with: +`cd backend` + +Run in development mode with: +`./mvnw compile quarkus:dev` + +Package the project as a JAR file with (only needs to be done once): +`./mvnw package` + +Run in production mode: +`java -jar target/quarkus-app/quarkus-run.jar`