This CRMS is built using Java, Vaadin and SpringBoot Framework.
To create a production build, call mvnw clean package -Pproduction
(Windows),
or ./mvnw clean package -Pproduction
(Mac & Linux).
This will build a JAR file with all the dependencies and front-end resources,
ready to be deployed. The file can be found in the target
folder after the build completes.
Once the JAR file is built, you can run it using
java -jar target/crms-1.0-SNAPSHOT.jar
MainLayout.java
insrc/main/java
contains the navigation setup (i.e., the side/top bar and the main menu).views
package insrc/main/java
contains the server-side Java views of your application.views
folder infrontend/
contains the client-side JavaScript views of your application.themes
folder infrontend/
contains the custom CSS styles.
To build the Dockerized version of the project, run
mvn clean package -Pproduction
docker build . -t crms:latest
Once the Docker image is correctly built, you can test it locally using
docker run -p 8080:8080 crms:latest
NB: Can be deployed to Heroku and Other cloud providers for free;