Giter VIP home page Giter VIP logo

cim-rdfxml-service's Introduction

Minimal Microservice Scaffold in Golang / Go.

Example simple microservice project template providing:

  • quick bootstrap of Golang microservice development,
  • useful project structure,
  • some best practices for microservices,
  • ginkgo BDD-style unit and integration tests,
  • optional .config.json initialisation file,
  • environment variable configurations,
  • http.HandlerFunc middleware compatible examples,
  • uses performant httprouter (HTTP-handling otherwise based on the standard Go libraries),
  • JSON stream processing of incoming data (array of JSON objects),
  • ETL schema-based and ELT schemaless JSON data transformation examples,
  • CI/CD scripts help ship microservice container artifact,
  • minimally sized container image from scratch,
  • single static executable as only possible entrypoint,
  • based on secure and lightweight system call library musl-libc (Alpine Linux),
  • includes ca-certificates for Golang HTTPS/TLS connectivity.

Runtime configuration

  • /.config.json is an empty optional configuration file which is included into the Docker build.

Editor integration

  • It is recommended to use the gopls Golang Language Server when working with Golang files. The Language Server was introduced in summer 2019 and is still in alpha state by October 2019, but is already very usable, efficient and works well with Golang modules.

VSCode - Visual Studio Code

  • .vscode/tasks.json includes a default build task (ctrl+b) which executes .ci/build-docker.sh script.

Build system

  • Build scripts in .ci/ will build the microservice static executable using Alpine Linux for a more secure system calls library (musl-libc) and being very lightweight with minimal bloat to the executable.

Docker image

  • microservice executable placed as /service in Docker image,
  • single entrypoint for container image,
  • Dockerfile can accept some arguments via the build environment (but must otherwise must be edited for e.g static resources).

See also

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.