https://github.com/mrin9/embeded-tomcat-jersey-rest-angular-jwt
(Work In Progress) Self executing portable web-app using embedded Tomcat, Jersey Backend and Angular Frontend
https://github.com/mrin9/embeded-tomcat-jersey-rest-angular-jwt
Last synced: about 1 year ago
JSON representation
(Work In Progress) Self executing portable web-app using embedded Tomcat, Jersey Backend and Angular Frontend
- Host: GitHub
- URL: https://github.com/mrin9/embeded-tomcat-jersey-rest-angular-jwt
- Owner: mrin9
- Created: 2017-11-28T23:54:18.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2020-11-06T21:21:20.000Z (over 5 years ago)
- Last Synced: 2024-10-11T21:04:51.593Z (over 1 year ago)
- Language: Java
- Size: 15.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Embeded-Tomcat-Jersey-REST-Angular-JWT
## Overview
The project generates a self executing fat jar withh all the dependencies bundled in it. When you execute, it will
* Start Tomcat server (in embedded mode)
* Setup jersey 2 (REST API support, include CORS support)
* Setup logging for the project (log4j2)
* Generates Open API spec for the APIs it is exposing (Swagger)
### Build
```mvn clean install```
### Execute
``` java -jar ./target/app-jar-with-dependencies.jar ``` It should start the server at port 8080 and create a log folder
### Some Initial endpoints
Cpmponent | URL
--- | ---
Servlet | http://localhost:8080/servlet
JSP | http://localhost:8080/index.jsp
index.html (default)| http://localhost:8080 or http://localhost:8080/index.html
Jersey App | http://localhost:8080/api/auth/message
Swagger (API Spec) | http://localhost:8080/api/swagger.json
Error Page | http://localhost:8080/some-non-existing-page