webApplication/
: The main directory for the Ballerina web application.UI/
: Contains the user interface (HTML and CSS).ui.html
: HTML file for the user interface.
service.bal
: Ballerina file containing the backend logic and API implementation.
Follow the steps below to set up and run the web application:
Make sure you have the following installed:
-
Clone the repository:
git clone https://github.com/pcnfernando/NDT_Mora.git
-
Navigate to the project directory:
cd NDT_Mora/webApplication
-
Build and run the Ballerina service:
bal run webApplication/service.bal
-
Navigate to the UI directory:
cd NDT_Mora/webApplication/UI
-
Build the Docker Image for the HTML Server
docker build -t html-server-image:v1 .
-
Run the Docker Container
docker run -d -p 80:80 html-server-image:v1
-
Test the UI is up
You can view it in the browser now by going to localhost:80 and you should see your HTML file.
resources/
docker-compose.yaml
: Docker Compose file for deploying the mysql server for your reference.