Skip to content

servantscode/service-template

Repository files navigation

service-template

Basic template for a new javabased service in the SC infrastructure. Includes:

  • HelloService
  • Gradle project
  • Docker configuration
    • Filebeats logging watcher
    • Tomcat
  • Docker compose
    • Postgres
    • HelloService

After cloning you can start with:

  • gradle build
  • make build
  • dc up

Verify life at http://localhost/rest

First steps:

  • Create and populate new service repo

  • Change project name using quick-start.sh:

    • ./quick-start.sh {service-name}

This will update the service name in:

  • settings.gradle
  • deploy.env
  • Dockerfile
  • docker-compose.yml
  • src/main/resources/log4j2.json

It will also:

  • Update README.md

  • Change git destination

    • git remote set-url origin git@github.com:servantscode/{new-service}.git
  • Push template files to repo

    • git push
  • Replace HelloSvc.java with your work

About

Getting started. Template for a new Java/postgres API

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published