Skip to content

ermes-thesis/ermes-function-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ermes function template

This repository contains examples of Ermes serverless function written in GO.

A developer can fork this repo to write his functions.

Requirements

It is recommended to use the provided DevContainer, as it already satisfy all the requirements.

Since the required dependencies are in private repositories, you need to clone the other Ermes repositories in the same parent folder, with this structure:

projects
└───ermes-sdk-go
│   │   ...
└───ermes-common
│   │   ...
└───ermes-function-template
│   │   ...
└───ermes-cli
    │   ...

How to build

The function is compiled with the Ermes CLI (that allows to create compact WASM executables with TinyGo).

If you have installed the Ermes CLI locally, or you are using the DevContainer, you can see the available commands with:

ermes-cli help

How to use the DevContainer

Requirements:

  • Docker
  • GoLand or VSCode with the DevContainer extension

How to use with GOLand

  1. Start Docker
  2. Open GoLand
  3. Open this project (or clone the repo if not already done)
  4. A popup should ask to reopen the project in the container, click reopen

You can also start the container by navigating to the devcontainer.json file and use the Services tab to manage existing containers.

How to use with VSCode

  1. Start Docker
  2. Open the project in VSCode
  3. A popup should ask to reopen the project in the container, click 'Reopen'

About

Template of GO function that uses the Ermes SDK

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors