add version + fix README
This commit is contained in:
parent
6758f94285
commit
c734729554
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,3 +1,4 @@
|
||||
.deploy
|
||||
builds
|
||||
store
|
||||
|
||||
|
||||
@ -17,6 +17,5 @@ WORKDIR /app
|
||||
|
||||
COPY --from=builder /app/librapi .
|
||||
RUN chmod +x /app/librapi
|
||||
RUN mkdir -p /app/store
|
||||
|
||||
CMD ["./librapi"]
|
||||
4
Makefile
4
Makefile
@ -1,3 +1,7 @@
|
||||
-include .deploy/Makefile
|
||||
|
||||
VERSION := 0.1.0
|
||||
|
||||
test:
|
||||
go test ./... -race
|
||||
|
||||
|
||||
@ -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 !
|
||||
Loading…
x
Reference in New Issue
Block a user