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

https://github.com/adrianmg/go-server

http server in go
https://github.com/adrianmg/go-server

go golang http http-server server

Last synced: 6 months ago
JSON representation

http server in go

Awesome Lists containing this project

README

          

# http server in go

A tiny HTTP Go server for learning purposes. It's got two endpoints:

- `/`: returns the current time in JSON format
- `/ip`: returns the client's IP address

Demo available on [adrianmg-go-server.fly.dev](https://adrianmg-go-server.fly.dev) and .

## dev

Use `go run .` or `go run index.go` to run locally on `localhost:8080`.

Deploy it for free on [Fly.io](https://fly.io) using `flyctl launch` and `flyctl deploy`. Alternatively, you can use [Render](https://render.com) to deploy it.