Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/bibekaryal86/app-skeleton-nospringboot

This is a template Repository to create a new Java web server without spring framework. It uses Jetty, Servlets and GSON libraries.
https://github.com/bibekaryal86/app-skeleton-nospringboot

gson jetty servlets

Last synced: 1 day ago
JSON representation

This is a template Repository to create a new Java web server without spring framework. It uses Jetty, Servlets and GSON libraries.

Awesome Lists containing this project

README

        

# nospring-service-skeleton

* This is a template Repository to create a new Java web server without spring framework
* Things to update:
* Refactor the package name from `nospring.service.skeleton.app` to as desired
* keep it 3 words if possible, eg: `xxx.xxx.xxx.app`
* `settings.gradle`
* `rootProject.name`
* `build.gradle`
* Add/Remove dependencies as necessary
* `archiveFileName` and `Main-Class` in `jar`
* `mainClass` in `application`
* gradle wrapper version as necessary
* `logback.xml` as necessary
* replace `nospring-service-skeleton` with application name in `LOG_PATTERN`
* `Dockerfile` as necessary
* esp `JAR_FILE`, `COPY` and environment variables in `ENTRYPOINT`
* `Util.java`
* Update `CONTEXT_PATH`
* add/update/remove other constants/helper-methods
* GCP configurations, in `gcp` folder as necessary
* esp `app-credentials.yaml` and `app-credentials_DUMMY.yaml`
* `README.md` i.e. this file to add the program's readme
* `.gitignore` if necessary
* `App.java`
* begin and end logs
* About `SPRING_PROFILES_ACTIVE`
* This environment variable is named as such to match the app's spring-boot counterpart if any
* Things to add:
* `Scheduler.java` and scheduled jobs for any scheduled tasks
* See: `router-usage-statistics-java` for Quartz scheduler example
* https://github.com/bibekaryal86/router-usage-statistics-java
* Things to remove:
* If not using cache
* Remove `AppReset` from servlet package and it's mapping from `ServerJetty.java` and `ServletFilter.java`
* GitHub workflows
* Remove `dependabot.yml` in the new app until automated merge is figured out