add version + fix README

This commit is contained in:
rmanach 2025-11-24 17:12:18 +01:00
parent 6758f94285
commit c734729554
4 changed files with 8 additions and 2 deletions

1
.gitignore vendored
View File

@ -1,3 +1,4 @@
.deploy
builds
store

View File

@ -17,6 +17,5 @@ WORKDIR /app
COPY --from=builder /app/librapi .
RUN chmod +x /app/librapi
RUN mkdir -p /app/store
CMD ["./librapi"]

View File

@ -1,3 +1,7 @@
-include .deploy/Makefile
VERSION := 0.1.0
test:
go test ./... -race

View File

@ -6,9 +6,11 @@ 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.
## Run
* Copy `.env.example` into `.env` and fill with your values.
* Build and run the docker image:
```bash
make run
```
You can then access the server through `http://localhost:8080`.
You can then access the server through `http://localhost:8080`. The port may change if you update it in `.env`.
Enjoy !