westack-go

command module
v1.2.15 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2022 License: MIT Imports: 1 Imported by: 0

README

westack-go

Introduction

This is an experimental migration of Loopback 3 to Go

Basic example
package main

import (
	"github.com/fredyk/westack-go/westack"
	"github.com/gofiber/fiber/v2"
	"log"
)

func main() {

	app := westack.New(westack.WeStackOptions{
		Debug:       false,
		RestApiRoot: "/api/v1",
		Port:        8023,
	})

	app.Boot(func(app * westack.WeStack) {

		// Setup your custom routes here
		app.Server.Get("/status", func(c * fiber.Ctx) error {
			return c.JSON(fiber.Map{"status": "OK"})
		})

	})

	log.Fatal(app.Start(fmt.Sprintf(":%v", app.Port)))

}

Contribute

Write to westack.team@gmail.com if you want to contribute to the project: D

You can also create as many pull requests as you want

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
client module
examples
v2
lambdas Module
v2/lambdas Module

Jump to

Keyboard shortcuts

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