╭ changed ╮ │README.md│ ╰─────────╯ ╭───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │40 │ │41 ## How to fire this puppy up and get 'er done │ │42 │ │43 -To build, install zig 0.16.0 and do `zig build` and you'll find the binary at `zig-out/bin/haxy`. │ │43 +To build, install zig 0.16.0 and do `zig build` and you'll find the binary at `zig-out/bin/haxy`. On a production server you would run this binary with the `serve` subcommand.│ │44 │ │45 -It can't do much right now...it's just a git server at the moment. If you want to try it out, do this: │ │45 +The easiest way to try Haxy out is like this: │ │46 │ │47 ``` │ │48 -mkdir -p server │ │49 -./zig-out/bin/haxy serve --http-listen 127.0.0.1:8080 --data-dir server │ │48 +zig build try │ │49 ``` │ │50 │ │52 -Then, in another terminal, do this: │ │51 +This will launch a server with fake data that it stores in the `temp-try` directory. It will then launch the TUI directly in your terminal (you can exit by pressing escape). │ │52 + │ │53 +Additionally, you can view the web UI at http://localhost:8000 and push a git repo to http://localhost:8080 like this: │ │54 │ │55 ``` │ │55 -mkdir -p client/test │ │56 -cd client/test │ │56 +mkdir -p temp-try/client/test │ │57 +cd temp-try/client/test │ │58 git init │ │59 echo "hello" > hello.txt │ │60 git add hello.txt │ ╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭────────────────────────────────────────────────────╮ │61 git commit -m "let there be light" │ │61 -git remote add origin http://127.0.0.1:8080/test│ │62 +git remote add origin http://localhost:8080/test│ │63 git push origin HEAD:master │ │64 ``` │ │65 │ ╰────────────────────────────────────────────────────╯ ╭───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │65 -After that, you'll see your repo in `server/repos/test`. It's MAGIC! │ │66 +After that, you'll see your repo in `temp-try/server/repos/test`. It's MAGIC! │ │67 │ │67 -To get an early look at the interface, you can run `zig build try`. This is a special build command that runs a server with fake data and launches the TUI. On Arch-based distros you need to edit the `build.zig` so the `try` command has `.use_llvm = true`.│ │68 - │ │68 *"C'mon Alex! You always dreamt about going on a big adventure! Let this be our first!" -- Lunar: Silver Star Story* │ │69 │ ╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯