All Projects → javaee-samples → microprofile1.2-samples

javaee-samples / microprofile1.2-samples

Licence: other
Eclipse MicroProfile 1.2 Samples

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to microprofile1.2-samples

membership
Membership service (to demonstrate graphQL)
Stars: ✭ 19 (-13.64%)
Mutual labels:  javaee, payara-micro
jakartaee-kubernetes
Effective Kubernetes for Java EE, Jakarta EE and MicroProfile Developers
Stars: ✭ 32 (+45.45%)
Mutual labels:  javaee, microprofile
x-ray
Statistics and analytics Java EE 6 software for blogs (tested with roller) and webapps. It is a vanilla Java EE 6 (REST/JAX-RS, CDI, EJB, JPA) app, tested on Glassfish v3.1, built with Maven 3 / hudson and developed with NetBeans 7. X-ray is the sample app of the "Real World Night Hacks" book.
Stars: ✭ 27 (+22.73%)
Mutual labels:  javaee, microprofile
jakartaee8-starter-boilerplate
A boilerplate project for starting a Jakarta EE 8 application in seconds
Stars: ✭ 55 (+150%)
Mutual labels:  wildfly, payara
graphql-example
A MicroProfile GraphQL Example
Stars: ✭ 44 (+100%)
Mutual labels:  wildfly, microprofile
pragmatic-microservices-lab
Hands-on lab demonstrating how to create pragmatic microservices with Java EE and MicroProfile
Stars: ✭ 28 (+27.27%)
Mutual labels:  javaee, microprofile
generator-jvm
Generate JVM (java, kotlin, scala) project with gradle / maven / sbt build systems and docker / docker-compose for rapid development
Stars: ✭ 40 (+81.82%)
Mutual labels:  microprofile, wildfly-swarm
Javaee7 Samples
Java EE 7 Samples
Stars: ✭ 2,470 (+11127.27%)
Mutual labels:  javaee, payara
test-data-loader
A Groovy DSL for creating test data via JPA
Stars: ✭ 12 (-45.45%)
Mutual labels:  wildfly, wildfly-swarm
application-modernization-javaee-quarkus
Application Modernization Sample - From Java EE (2010) to Cloud-Native (2021)
Stars: ✭ 99 (+350%)
Mutual labels:  javaee, microprofile
online-training
Online Training website using ASP.Net Core 2.0 & Angular 4
Stars: ✭ 26 (+18.18%)
Mutual labels:  jwt-authentication
jersey-jwt-springsecurity
Example of REST API with JWT authentication using Spring Boot, Spring Security, Jersey and Jackson.
Stars: ✭ 44 (+100%)
Mutual labels:  jwt-authentication
socialApp-MERN
Social Networking web app similar to Instagram.
Stars: ✭ 35 (+59.09%)
Mutual labels:  jwt-authentication
pothole detection
By using this app users can report the potholes on road by clicking a photo via our app and if a pothole is detected by Machine Learning modal then it is saved to our Database from where officials can view the specifics like location,reported by and official can resolve the request.User are notified by email for every update regarding their request
Stars: ✭ 17 (-22.73%)
Mutual labels:  jwt-authentication
zainabed-spring-security-jwt
Authentication & Authorization module for standalone Spring Boot app or Spring Cloud applications
Stars: ✭ 24 (+9.09%)
Mutual labels:  jwt-authentication
EasyEE-Auto
EasyEE 自动化代码生成器。EasyEE Automated code generator.
Stars: ✭ 39 (+77.27%)
Mutual labels:  javaee
smart-home
Control house using raspberry pi djago based secure REST api. Made using raspberry pi, arduino, django ,django REST and angular.
Stars: ✭ 30 (+36.36%)
Mutual labels:  jwt-authentication
Human-Resources-Management-System
Human Resources Management System Project
Stars: ✭ 32 (+45.45%)
Mutual labels:  jwt-authentication
getting-started-with-microprofile
📙 Everything you need to know about MicroProfile
Stars: ✭ 35 (+59.09%)
Mutual labels:  microprofile
sails-jwt-login
How to implement login with JWT (JSON Web Tokens) in Sails 1.0
Stars: ✭ 18 (-18.18%)
Mutual labels:  jwt-authentication

Eclipse MicroProfile 1.2 samples

Build Status

This workspace consists of MicroProfile 1.2 Samples and unit tests. MicroProfile is a code first, open API initiative about optimizing Enterprise Java for a microservices architecture. See microprofile.io for additional info.

Samples are categorized in different directories, one for each technology/spec.

How to run?

Samples are tested on Payara using Arquillian. Arquillian uses container profiles to start up and deploy tests to individual containers (servers).

Only one container profile can be active at a given time, otherwise there will be dependency conflicts.

These are the available container profiles:

  • Payara
    • payara-ci-managed

      This profile will install a Payara server and start up the server per sample. Useful for CI servers. The Payara version that's used can be set via the payara.version property. This is the default profile and does not have to be specified explicitly.

    • payara-micro-managed

      This profile will install Payara Micro and start up the jar per sample. Useful for CI servers. The Payara Micro version that's used can be set via the payara.micro.version property.

    • payara-remote

      This profile requires you to start up a Payara server outside of the build. Each sample will then reuse this instance to run the tests. Useful for development to avoid the server start up cost per sample.

  • Liberty
    • liberty-ci-managed

      This profile uses the special "wlp-microProfile1" distribution of Liberty, which contains the MicroProfile APIs out of the box and start up the server per sample. Useful for CI servers. The Liberty version that's used can be set via the liberty.version property.

  • Thorntail
    • thorntail

      This profile is based on Thorntail, and includes the MicroProfile 1.2 fragment. The actual Thorntail code and thus the WildFly code is handled internally by the Arquillian connector. Useful for CI servers. The Thorntail version that's used can be set via the thorntail.version property.

The containers that download and install a server (the *-ci-managed profiles) allow you to override the version used, e.g.:

  • -Dpayara.version=5.0.0.174

    This will change the version from the current one (e.g 5.0.0.172) to 5.0.0.174 for Payara testing purposes.

To run them in the console do:

  1. In the terminal, mvn test -fae at the top-level directory to start the tests for the default profile.

When developing and runing them from IDE, remember to activate the profile before running the test.

To learn more about Arquillian please refer to the Arquillian Guides

To run only a subset of the tests do at the top-level directory:

  1. Install top level dependencies: mvn clean install -pl "test-utils" -am
  2. cd into desired module, e.g.: cd cdi
  3. Run tests against desired server, e.g.: mvn clean test -P payara-remote

How to contribute

With your help we can improve this set of samples, learn from each other and grow the community full of passionate people who care about the technology, innovation and code quality. Every contribution matters!

There is just a bunch of things you should keep in mind before sending a pull request, so we can easily get all the new things incorporated into the master branch.

Standard tests are jUnit based. Test classes naming must comply with surefire naming standards **/*Test.java, **/*Test*.java or **/*TestCase.java.

For the sake of clarity and consistency, and to minimize the upfront complexity, we prefer standard jUnit tests using Java, with as additional helpers HtmlUnit, Hamcrest and of course Arquillian. Please don't use alternatives for these technologies. If any new dependency has to be introduced into this project it should provide something that's not covered by these existing dependencies.

Some coding principles

  • When creating new source file do not put (or copy) any license header, as we use top-level license (MIT) for each and every file in this repository.
  • Please follow JBoss Community code formatting profile as defined in the jboss/ide-config repository. The details are explained there, as well as configurations for Eclipse, IntelliJ and NetBeans.

Small Git tips

  • Make sure your fork is always up-to-date. Simply run git pull upstream master and you are ready to hack.
  • When developing new features please create a feature branch so that we incorporate your changes smoothly. It's also convenient for you as you could work on few things in parallel ;) In order to create a feature branch and switch to it in one swoop you can use git checkout -b my_new_cool_feature

That's it! Welcome in the community!

CI Job

CI jobs are executed by Travis. Note that by the very nature of the samples provided here it's perfectly normal that not all tests pass. This normally would indicate a bug in the server on which the samples are executed. If you think it's really the test that's faulty, then please submit an issue or provide a PR with a fix.

Run each sample in Docker

  • Install Docker client from http://boot2docker.io

  • Build the sample that you want to run as

    mvn clean package -DskipTests

    For example: (note the exact module doens't exist yet, wip here)

    mvn -f jaxrs/jaxrs-client/pom.xml clean package -DskipTests

  • Change the second line in Dockerfile to specify the location of the generated WAR file

  • Run boot2docker and give the command

    docker build -it -p 80:8080 javaee8-sample

  • In a different shell, find out the IP address of the running container as:

    boot2docker ip

  • Access the sample as http://IP_ADDRESS:80/jaxrs-client/webresources/persons. The exact URL would differ based upon the sample.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].