Skip to content

pcnfernando/NDT_Mora

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

Sample Web Application

  • 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.

Getting Started

Follow the steps below to set up and run the web application:

Prerequisites

Make sure you have the following installed:

Running the Service

  1. Clone the repository:

    git clone https://github.com/pcnfernando/NDT_Mora.git
  2. Navigate to the project directory:

    cd NDT_Mora/webApplication
  3. Build and run the Ballerina service:

    bal run webApplication/service.bal

Deploying UI

  1. Navigate to the UI directory:

    cd NDT_Mora/webApplication/UI
  2. Build the Docker Image for the HTML Server

    docker build -t html-server-image:v1 .
  3. Run the Docker Container

    docker run -d -p 80:80 html-server-image:v1
  4. 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.

Extra resources

  • resources/
    • docker-compose.yaml: Docker Compose file for deploying the mysql server for your reference.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published