Giter Site home page Giter Site logo

shipping-api's Introduction

Hiis ZIO API seed project

Scala Version SBT Version Scala CI

Description

This is a seed template for scala microservice applications. This should serve as a base template for most if not all scala microservice applications at hiis. It made up of the following main components

  • ZIO (zio, zio-http, etc)
  • Authentication and authorization
  • Docker build
  • Sbt Mdoc for documentation
  • Scala formatting (scalafix, scalafmt)

Structure

This structure is standard across most microservice code bases at Hiis and should be maintained if possible.

  • docs contains the project documentation and should be regularly updated.

  • zio-microservice-docs contains the project generated docs (such as scala docs) and website contains entire documentation static site. See mdoc and mdoc with docusaurus to learn more.

  • modules/core should contain all core project components such as models and common code.

  • modules/application should contain the main zio application.

  • modules/it should contain the integration test code for the main application.

  • Dockerfile contains build information on how to build the docker image based on the application.

How to run

Building application (SBT assembly & Docker)

  • To build the fat jar using sbt assembly simply run the command sbt build with your desired configurations set up in application.conf
  • To build the docker image simply run sbt build-docker with your desired configurations set up in application.conf. Make sure you change the docker user in build.sbt

How to build jar file

How to run the jar file

  • run java -jar /modules/application/target/scala-2.13/zio-microservice-seed.jar and open the browser at http://localhost:8080/docs

Deploy to Render

Deploy on Fly(Preferred)

Development

  • Clone the project
  • Make sure you have sbt installed in your computer.
  • Import the project in your preferred sbt supported IDE (we recommend Intellij Idea, the community version will suffice)
  • Make sure all external dependencies are up and running (See External dependencies section above)
  • Start coding and testing.
  • Pull request are welcomed.

Contributing

This project is open to contributions be it through issues or pull request. Have a look at our contribution guide before you get started.

License

MIT

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.