Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ncpa0/hardwire


https://github.com/ncpa0/hardwire

Last synced: about 1 month ago
JSON representation

Awesome Lists containing this project

README

        

## Installation

```sh
go get github.com/ncpa0/hardwire
```

## Setup

```go
import (
"github.com/ncpa0/hardwire"
echo "github.com/labstack/echo/v4"
)

func main() {
server := echo.New()

hardwire.Configure(&hardwire.Configuration{
Entrypoint: "./src/index.tsx",
ViewsDir: "./pages",
StaticDir: "./static",
StaticURL: "/static",
})

server.GET("/", func(c echo.Context) error {
return c.Redirect(303, "/home")
})

server.Logger.Fatal(hardwire.Start(server, ":8080"))
}
```