new-sample-app

command module
v0.0.0-...-3ed5329 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 26, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

README

Application Service Template

This folder contains a buildable/runnable template for a new custom application service based on the Pre-Release 2.x release of the App Functions SDK.

Note: If you only need to use the built-in pipeline functions, then it is advisable that you use App Service Configurable rather then create a new custom application service. See here for more details on App Service Configurable

Follow the instructions below to create your new customer application service:

  1. Copy contents of this folder to your new folder

  2. Change name new-sample-app in go.mod file to an appropriate Go Module name for your service

    • Typically this is the URL to the repository for your service
  3. Remove the replace statement from the go.mod file

  4. Do a global search and replace on new-sample-app to replace it with the name of your service

    • Note that this name is used as the service key, so it needs to use dashes rather than spaces in the name and avoid other special characters
  5. Adjust your local import statements to match the name you selected in the go.mod file

    • Only needed in main.go if the Go Module name changed to a URL
  6. Run unit tests to verify changes didn't break the code

    • make test
  7. Verify you are able to build the executable

    • make build
  8. Update the Makefile docker build to adjust image name appropriately

  9. Verify the docker image still builds with your new image name

    • make docker
  10. Address all the TODO's in the source files and add your custom code

  11. Build and test your new custom application service

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL