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

https://github.com/yaanno/fiber-app

Exploring Fiber and JS frontend
https://github.com/yaanno/fiber-app

fiber go golang htmx pokemons

Last synced: 24 days ago
JSON representation

Exploring Fiber and JS frontend

Awesome Lists containing this project

README

          

Fiber and Htmx
======================

Inspired by [Jack Herrington's experiment](https://github.com/jherr/rscs-vs-php)

Ingredients:
- Go & Fiber: https://gofiber.io/
- Htmx: https://htmx.org/

## Fiber
Lovely Go based web framework.

## Htmx
Relatively small library that extends the default Web APIs.

## Running

Grab the `data` server from Jack's repo and run the server:

```bash
% cd data
% binserve
```

This will serve the pokemon data on port 8080. You can use [binserve](https://github.com/mufeedvh/binserve) or any other fast static server.

Then run the following in this repo (assuming you have Go and optionally Air installed):

## Air

```bash
air
```

## Without Air

```bash
go run app.go
```

Serves on: `http://locahost:3000/`