0% found this document useful (0 votes)
64 views2 pages

GitLab Project Setup for D387 Java

The document describes modifying a Java application to support localization and internationalization, including displaying text in different languages and currencies, and converting times between time zones. It also includes instructions to containerize the application using Docker and deploy it to a cloud provider.

Uploaded by

Gamer Fox
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
64 views2 pages

GitLab Project Setup for D387 Java

The document describes modifying a Java application to support localization and internationalization, including displaying text in different languages and currencies, and converting times between time zones. It also includes instructions to containerize the application using Docker and deploy it to a cloud provider.

Uploaded by

Gamer Fox
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd

A.

Create your subgroup and project in GitLab using the provided web link and the
"GitLab How-To" web link by doing the following:

• Clone the project to the IDE.

• Commit with a message and push when you complete each requirement listed in
parts B1, B2, B3, and C1.

Note: You may commit and push whenever you want to back up your changes, even if a
requirement is not yet complete.

• Submit a copy of the GitLab repository URL in the "Comments to Evaluator"


section when you submit this assessment.

• Submit a copy of the repository branch history retrieved from your repository,
which must include the commit messages and dates.

Note: Wait until you have completed all the following prompts before you create
your copy of the repository branch history.

B. Modify the Landon Hotel scheduling application for localization and


internationalization by doing the following:

1. Install the Landon Hotel scheduling application in your integrated development


environment (IDE). Modify the Java classes of application to display a welcome
message by doing the following:

a. Build resource bundles for both English and French (languages required by
Canadian law). Include a welcome message in the language resource bundles.

b. Display the welcome message in both English and French by applying the resource
bundles using a different thread for each language.

Note: You may use Google Translate for the wording of your welcome message.

2. Modify the front end to display the price for a reservation in currency rates
for U.S. dollars ($), Canadian dollars (C$), and euros (€) on different lines.

Note: It is not necessary to convert the values of the prices.

3. Display the time for an online live presentation held at the Landon Hotel by
doing the following:

a. Write a Java method to convert times between eastern time (ET), mountain time
(MT), and coordinated universal time (UTC) zones.

b. Use the time zone conversion method from part B3a to display a message stating
the time in all three times zones in hours and minutes for an online, live
presentation held at the Landon Hotel. The times should be displayed as ET, MT, and
UTC.

C. Explain how you would deploy the Spring application with a Java back end and an
Angular front end to cloud services and create a Dockerfile using the attached
supporting document "How to Create a Docker Account" by doing the following:

1. Build the Dockerfile to create a single image that includes all code, including
modifications made in parts B1 to B3. Commit and push the final Dockerfile to
GitLab.

2. Test the Dockerfile by doing the following:

• Create a Docker image of the current multithreaded Spring application.

• Run the Docker image in a container and give the container a name that includes
D387_[student ID].

• Submit a screenshot capture of the running application with evidence it is


running in the container.

3. Describe how you would deploy the current multithreaded Spring application to
the cloud. Include the name of the cloud service provider you would use.

Note: Remember to commit and push your changes to GitLab.

Common questions

Powered by AI

Deploying a Spring application with a Java back end and Angular front end to cloud services involves several steps: building a Docker image encapsulating the application, ensuring the image includes all configurations and dependencies, and pushing the image to a container registry. Once stored, the image can be pulled and run in the cloud environment offered by providers like AWS, Google Cloud, or Azure. This allows scalable, efficient distribution and execution across different infrastructures .

Time zone conversion functionality enhances the application by making it viable for users across different regions to accurately view event times relevant to their geographic location. This feature ensures that the Landon Hotel scheduling app can state presentation times in Eastern Time (ET), Mountain Time (MT), and Coordinated Universal Time (UTC), thereby avoiding scheduling errors and improving the user experience for a global clientele .

Employing different threads for displaying languages allows the Landon Hotel application to handle multiple concurrent tasks efficiently, improving user experience. This approach can prevent performance bottlenecks and ensure that UI updates happen simultaneously without freezing the user interface. By running language-specific tasks in separate threads, the application can display English and French messages concurrently, providing timely and smooth transitions between languages .

A Dockerfile simplifies deployment by providing a scripted way to build a Docker image containing the application's code, dependencies, and environment configurations. This approach ensures that the application runs uniformly across various platforms by eliminating discrepancies between different environments, thereby reducing deployment errors and improving efficiency in deploying complex applications like the Landon Hotel scheduling app .

Using consistent naming conventions, such as D387_[student ID], enhances clarity and organization, allowing for easier tracking and management of containers. It helps in identifying the purpose, ownership, and version of containers, simplifying debugging, collaboration, and deployment processes. This approach reduces mistakes and improves team coordination in complex environments with numerous containers .

Committing and pushing changes to a GitLab repository allows for continuous integration and version control, providing a historical record of modifications. It enables developers to track changes, share with team members, and revert to previous versions if needed. In the context of the Landon Hotel application, this practice ensures that all updates, including localization and currency modifications, are systematically documented and can be reviewed or restored, facilitating collaborative development and ensuring project continuity .

Using Docker to containerize the modified Spring application provides several benefits, including consistent environments across development, testing, and production, reduced conflicts due to dependencies, and simplified deployment with all necessary components encapsulated in a container. This method enhances scalability and manageability, making it easier to deploy the application to cloud services without worrying about underlying infrastructure differences .

The task specifies that the front-end should display currency rates in U.S. dollars, Canadian dollars, and euros on separate lines without the need for conversion, likely because this requirement focuses on the display mechanics rather than currency accuracy. It is intended to show how the application can support multi-currency view without complex exchange rate computations, simplifying implementation and testing .

Creating resource bundles is crucial for localization as it allows the application to support multiple languages, enhancing user experience for non-native speakers. This process involves externalizing data and resources such as strings and messages, ensuring they can be easily translated and adapted for different regions and users. In the case of the Landon Hotel scheduling app, resource bundles enable welcome messages to be displayed in both English and French, complying with Canadian law .

When modifying code for internationalization, considerations include language resource management, cultural nuances in text and symbols, and correct placement of elements to accommodate language-specific usage patterns. For currency display, considerations include local formatting rules, symbol recognition, and user understanding. Both modifications must ensure flexibility, scalability, and maintain a consistent user interface across different locales .

You might also like