Skip to content

napptive/test-xygeni

Repository files navigation

go-template

Napptive golang template

The purpose of this project is to provide a common template to develop Golang microservices in Napptive.

Layout structure

The layout structure is based on the default golang-template layout.

https://github.com/golang-standards/project-layout

Usage

A make file is provided with the following targets:

  • clean: Remove build files
  • test: Run the available tests
  • build: Build the files for your local environment
  • build-darwin: Build the files for MacOS
  • build-linux: Build the files for Linux
  • k8s: Generate the Kubernetes deployment files
  • docker-prep: Prepare the Dockerfile folder with all the extra files
  • docker-build: Build the Dockerfile locally
  • docker-push: Push the image to the selected repository. You must make login before to push the docker image.

Important

If you are developing with MacOS/Darwin, you must install gnu-sed.

brew install gnu-sed

Integration with Github Actions

This template is integrated with GitHub Actions.

Check changes in the Main branch

License

Copyright 2023 Napptive

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

  https://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

About

No description, website, or topics provided.

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published