From f0bc335f0d9c7c0f485f0b0e2704fc601e6b7fb6 Mon Sep 17 00:00:00 2001 From: Siesta <124433727+siestaw@users.noreply.github.com> Date: Mon, 28 Jul 2025 21:08:34 +0200 Subject: [PATCH] docs: improve README --- README.md | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/README.md b/README.md index 617c8dc..dac307d 100644 --- a/README.md +++ b/README.md @@ -1,13 +1,38 @@ # 🛋️ Laterna (Server) +Laterna is an lightweight REST api for sharing HEX color codes between 2 (or more) lamps with simple HTTP requests, written in go. + +> [!NOTE] +> This project was developed with my own use case in mind. +> This is also my first REST api and my first project in go, so expect bugs and weird annoyances/limitations. + ## 🏵️ Setup +### 1. Clone the repository + +```sh +git clone https://github.com/siestaw/laterna.git +cd laterna +``` + +### 2. Configure the server + Laterna requires a config.json in it's root directory. An [example config](https://github.com/siestaw/Laterna/blob/main/config.json.example) is provided `$ mv config.json.example config.json` You can leave the json as it is or configure it to your liking, although some configuration options (e.g. `verboseLogging`) aren't fully implemented yet. +### 3. Run + +Make sure that go is installed. The server was tested with go 1.24.5 on linux. + +`$ go run ./cmd/server` + +or use the makefile: + +`$ make run` + ## 🛜 API Documentation ### Base URL