From 6758f94285c946cd76215e31705f05c90ee46e0b Mon Sep 17 00:00:00 2001 From: rmanach Date: Mon, 24 Nov 2025 16:10:55 +0100 Subject: [PATCH] update http port --- Makefile | 2 +- README.md | 8 +------- docker-compose.yml | 2 ++ main.go | 2 +- 4 files changed, 5 insertions(+), 9 deletions(-) diff --git a/Makefile b/Makefile index 9b6d91d..c0b5aff 100644 --- a/Makefile +++ b/Makefile @@ -9,4 +9,4 @@ lint: golangci-lint run --fix run: lint build - docker compose up \ No newline at end of file + docker compose up --build \ No newline at end of file diff --git a/README.md b/README.md index 326a079..d83c817 100644 --- a/README.md +++ b/README.md @@ -5,16 +5,10 @@ Its uses an **sqlite3** database to register resources. **NOTE**: The UI is dramatically ugly with almost no CSS and no responsiveness with small screens. There's no vocation to build a beautiful UI here, just to demonstrate how easy we can build practicable UI with server side rendering using Go std lib. Ideal for back office. -## Build -Build the binary `builds/librapi`: -```bash -make build -``` - ## Run ```bash make run ``` -You can then access the server through `http://localhost:8585`. +You can then access the server through `http://localhost:8080`. Enjoy ! \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml index 123efc9..0266e88 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,6 +1,8 @@ services: librapi: image: librapi:local + build: + context: . container_name: librapi env_file: - .env diff --git a/main.go b/main.go index 187b5f7..6a28a50 100644 --- a/main.go +++ b/main.go @@ -18,7 +18,7 @@ import ( ) const ( - defaultPort = 8585 + defaultPort = 8080 defaulStoreDir = "./store" version = "0.1.0" )