update http port

This commit is contained in:
rmanach 2025-11-24 16:10:55 +01:00
parent cd2631787a
commit 6758f94285
4 changed files with 5 additions and 9 deletions

View File

@ -9,4 +9,4 @@ lint:
golangci-lint run --fix golangci-lint run --fix
run: lint build run: lint build
docker compose up docker compose up --build

View File

@ -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. **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 ## Run
```bash ```bash
make run make run
``` ```
You can then access the server through `http://localhost:8585`. You can then access the server through `http://localhost:8080`.
Enjoy ! Enjoy !

View File

@ -1,6 +1,8 @@
services: services:
librapi: librapi:
image: librapi:local image: librapi:local
build:
context: .
container_name: librapi container_name: librapi
env_file: env_file:
- .env - .env

View File

@ -18,7 +18,7 @@ import (
) )
const ( const (
defaultPort = 8585 defaultPort = 8080
defaulStoreDir = "./store" defaulStoreDir = "./store"
version = "0.1.0" version = "0.1.0"
) )