Clone the repository along with its Git submodules:
git clone --recurse-submodules https://github.com/crystaldeveloper2017/SampleApplication.git
cd SampleApplicationCreate the application configuration file:
mkdir -p src/main/resources/staticyaml
cat > src/main/resources/staticyaml/Config.yaml <<'EOL'
mysqlusername: ""
password: ""
host: "abcdomain.in"
port: "3306"
mySqlPath: "1"
schemaName: Sample_application_staging
projectName: Sample Application
thread_sleep: 0
isAuditEnabled: "true"
copyAttachmentsToBuffer: "false"
persistentPath: "/home/ubuntu/sampleapplication/"
queryLogEnabled: "false"
sendEmail: "false"
EOLUpdate the following values according to your environment:
| Property | Description |
|---|---|
mysqlusername |
MySQL database username |
password |
MySQL database password |
host |
MySQL server hostname/IP |
port |
MySQL server port |
schemaName |
MySQL database/schema name |
persistentPath |
Directory used for persistent application data |
Important: Do not commit
Config.yamlif it contains database credentials or other sensitive information.
Build the application using your configured Maven/Java environment.
For example:
./mvnw clean packageThen deploy or run the generated application according to your server configuration.
Once the application is running, open:
http://localhost:8080
The basic application setup is now complete.
docker run -d --name mysql-db -e MYSQL_ROOT_PASSWORD=root123 -p 3306:3306 mysql:8.0