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
- Host: GitHub
- URL: https://github.com/adrianmg/go-server
- Owner: adrianmg
- Created: 2022-08-20T01:10:55.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-08-31T15:17:07.000Z (over 3 years ago)
- Last Synced: 2025-03-26T22:08:20.754Z (11 months ago)
- Topics: go, golang, http, http-server, server
- Language: Go
- Homepage:
- Size: 6.84 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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.