Skip to content

alfonsserra/payara-test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Payara Micro Example

Example based on an article published in the Java Magazine

Getting Started

To get you started you can simply clone the payara-test repository and install the dependencies:

Prerequisites

You need git to clone the payara-test repository.

You will need Java™ SE Development Kit 8 and Maven.

Clone payara-test

Clone the payara-test repository using git:

git clone https://github.com/systelab/payara-test.git
cd seed-jee

Install Dependencies

In order to install the dependencies you must run:

mvn install

Build:

docker build -t patientservice:1.0 .

Run:

docker run -d --link db -e DB_HOST=db -p 8080:8080 --name patientservice patientservice:1.0

As you need a MySQL server, you can run it in a container with the following command:

docker run -d --name db -e MYSQL_ROOT_PASSWORD=systelab -e MYSQL_DATABASE=systelab -e MYSQL_USER=systelab -e MYSQL_PASSWORD=systelab -p 3306:3306 mysql

Once everything is started, browse to: http://localhost:8080/PatientService-1.0/rest/patient

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages