Skip to content

tmtsoftware/csw-http-service-template.g8

Repository files navigation

This is a Giter8 template for a TMT app which creates a sample HTTP service project

The created project contains a sample service which includes the following :

  • Server wiring along which has handles of all CSW services (SampleWiring.scala)
  • Backend routes for various use cases (SampleRoute.scala)
  • Sample Api and its implementation for both scala and java (SampleImpl.scala, JSampleImpl.java, JSampleImplWrapper.scala)
  • Models and their (de)Serialization using borer (HttpCodecs.scala)
  • A case app for starting server with start command (SampleApp.scala)
  • Unit tests, integration tests for the backend server.

Getting Started

Install Coursier

Steps for installing coursier are documented here

Install Giter8

cs install giter8

Create new project using giter8 template

g8 tmtsoftware/csw-http-service-template.g8

This template will prompt for the following parameters. Press Enter to accept the default values, shown in brackets:

  • name: The name of the project.
  • organization: Specifies the organization for this project.
  • prefix: The prefix of the application.
  • version: Specifies the version for this project.
  • package: Top level package which dynamically gets created based on provided organization and subsystem in all subprojects.
  • author_name: The author name of the project.

Once the project is generated, refer to the project's README for instructions on how to use, build, and run the each project.


NOTE Following section is intended only for testing purpose and can be skipped by the consumers of template.

Testing the template

For people interested in testing the template with the latest commit on the dev branch (Active development branch), refer TESTING.md

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published