add usage instruction for when I get back to this
This commit is contained in:
parent
c1d73ca8b5
commit
aa5f39f4ca
1 changed files with 22 additions and 0 deletions
22
README.md
22
README.md
|
@ -33,3 +33,25 @@ i.e. replace redis with an event driven approach
|
||||||
- [x] create event store
|
- [x] create event store
|
||||||
- [x] make events
|
- [x] make events
|
||||||
- [x] implement event store
|
- [x] implement event store
|
||||||
|
|
||||||
|
## Usage tips
|
||||||
|
|
||||||
|
### Running the app locally
|
||||||
|
|
||||||
|
Install *air* from [cosmtrek/air github repo](https://github.com/cosmtrek/air) with `go install github.com/cosmtrek/air@latest` or use the provided install bash scripts. This tool will watch for changes in the project folder and rebuild and restart the app during development (at least most of the time)
|
||||||
|
|
||||||
|
then in the root folder:
|
||||||
|
|
||||||
|
air
|
||||||
|
|
||||||
|
and check for errors. Normally the site will now answer on [port 8080.](http://localhost:8080)
|
||||||
|
|
||||||
|
### Updating CSS with tailwind
|
||||||
|
|
||||||
|
Just add tailwind tags to the *class* attributes per documentation
|
||||||
|
|
||||||
|
then in the root folder:
|
||||||
|
|
||||||
|
npx tailwindcss -i ./src/input.css -o ./static/output.css --watch
|
||||||
|
|
||||||
|
Same deal, it will monitor changes in the templates and regenerate the output.css on the fly.
|
||||||
|
|
Loading…
Reference in a new issue