forked from blcham/record-manager
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from akaene/main
Migration to Spring Boot
- Loading branch information
Showing
85 changed files
with
1,037 additions
and
1,245 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,18 @@ | ||
FROM tomcat:9.0-jdk8-slim | ||
FROM maven:3-eclipse-temurin-17 as build | ||
|
||
EXPOSE 8080 | ||
WORKDIR /record-manager | ||
|
||
COPY pom.xml pom.xml | ||
|
||
RUN mvn -B de.qaware.maven:go-offline-maven-plugin:resolve-dependencies | ||
|
||
COPY src src | ||
|
||
COPY /target/record-manager-0.*.war /usr/local/tomcat/webapps/record-manager.war | ||
RUN mvn package -B -DskipTests=true | ||
|
||
FROM eclipse-temurin:17-jdk-alpine as runtime | ||
COPY --from=build /record-manager/target/record-manager.jar record-manager.jar | ||
|
||
EXPOSE 8080 | ||
|
||
CMD ["catalina.sh","run"] | ||
ENTRYPOINT ["java","-jar","/record-manager.jar"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
Development Notes | ||
|
||
Frontend of the application can be developed separately from the backend. | ||
Frontend of the application is developed separately. | ||
|
||
The setup requires following steps: | ||
1) configure the application according to [Setup Guide](setup.md) | ||
2) configure `config.properties` to contain `security.sameSite=None` | ||
This is important if you are running the application over http so | ||
web browser would not block requests to the server due to CORS policy. | ||
3) build the backend `mvn clean package` | ||
4) deploy created web application archive (`./target/record-manager-*.war`) to a web server | ||
5) run frontend `cd ./src/main/webapp; npm run dev` | ||
6) frontend is by default accessible from `http://localhost:3000` | ||
4) Run the created application archive (`./target/record-manager.jar`) | ||
5) Checkout and run frontend | ||
|
||
Alternatively to step 2, a browser plugin can be used to disable CORS policy. | ||
Alternatively to step 2, a browser plugin can be used to disable CORS policy. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.