TheJacksonLaboratory / PhenopacketLab

An Angular/Springboot web application for the loading, editing, saving of data that follows the Phenopacket Schema
BSD 3-Clause "New" or "Revised" License
8 stars 2 forks source link

Set up distribution of the restapi as a ZIP file. #181

Open ielis opened 1 year ago

ielis commented 1 year ago

Distribute the REST API as a self-contained ZIP file. The ZIP contains the app, all dependencies, and a launcher script. The launcher needs to be edited to select run profile and the data directory, and as of now serves as an example for running the app from CLI, as opposed to running from IDE.

Build the distribution by running:

./mvnw clean package -Prelease

After the successful build, the distribution is in phenopacketlab-restapi/target.

belkassaby commented 1 year ago

We need the frontend to be built and distributed the same way right? I think this is what we need : https://marco.dev/angular-with-java

I dont think the zip is necessary, just an executable jar/war that will contain the backend, frontend and also an embedded server used to serve both apps

belkassaby commented 1 year ago

Also I want to make sure the changes in the POM dont effect the current deployment we have currently. It should be another deployment policy, where we have deployment to the cloud and deployment to single executable file.

ielis commented 1 year ago

Yeah, it may be a good idea to follow the article you posted above.