diff --git a/.gitignore b/.gitignore index 52bf3a0..a4c5fe3 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ +.deploy builds store diff --git a/Dockerfile b/Dockerfile index 2a71218..d3a9bcc 100644 --- a/Dockerfile +++ b/Dockerfile @@ -17,6 +17,5 @@ WORKDIR /app COPY --from=builder /app/librapi . RUN chmod +x /app/librapi -RUN mkdir -p /app/store CMD ["./librapi"] \ No newline at end of file diff --git a/Makefile b/Makefile index c0b5aff..d8fe3c9 100644 --- a/Makefile +++ b/Makefile @@ -1,3 +1,7 @@ +-include .deploy/Makefile + +VERSION := 0.1.0 + test: go test ./... -race diff --git a/README.md b/README.md index d83c817..5ddde7d 100644 --- a/README.md +++ b/README.md @@ -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 ! \ No newline at end of file