https://github.com/allanhoejgaardjensen/seed-rest-server-jee7
a REST service sample based on JEE7
https://github.com/allanhoejgaardjensen/seed-rest-server-jee7
hal hateoas jee7 rest-api rest-microservice restapi swagger
Last synced: about 1 year ago
JSON representation
a REST service sample based on JEE7
- Host: GitHub
- URL: https://github.com/allanhoejgaardjensen/seed-rest-server-jee7
- Owner: AllanHoejgaardJensen
- License: mit
- Created: 2017-01-30T18:35:24.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2019-01-13T11:10:13.000Z (over 7 years ago)
- Last Synced: 2025-03-26T03:23:40.533Z (about 1 year ago)
- Topics: hal, hateoas, jee7, rest-api, rest-microservice, restapi, swagger
- Language: Java
- Size: 154 KB
- Stars: 2
- Watchers: 1
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Seed-REST-Server-JEE7
This is a sample REST service based on JEE7.
[](https://travis-ci.org/AllanHoejgaardJensen/seed-rest-server-jee7)
[](https://codecov.io/gh/AllanHoejgaardJensen/seed-rest-server-jee7)
## Deployment
The sample has two very simple concepts - "account" and customer" - which is assembled into one deployable war file.
Databases are separate to illustrate two different services. Normally they would be deployed as two different deployable units.
Useful Commands
---------------
To build the whole project:
mvn package
To build project including running integration tests:
mvn verify
To run in Wildfly:
mvn -N -Pwildfly cargo:run
To run in WebLogic:
mvn -N -Pweblogic cargo:run
To redeploy in Wildfly
mvn -N -Pwildfly cargo:redeploy
To redeploy in WebLogic
mvn -N -Pweblogic cargo:redeploy
Admin console
-------------
The WebLogic console may be accessed from http://localhost:7001/console using username "weblogic" and password "weblogic1".
The JBoss console may be accessed from http://localhost:9990 using username "advisor1" and password "passw0rd".
Inspiration
-------------
The code here is inspired heavily by work done by Nykredit on REST services.