tdiscuss

command module
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 20, 2024 License: BSD-3-Clause Imports: 38 Imported by: 0

README

tdiscuss

Discussion board for your tailnet

Why?

Why not? Who doesn't want a discussion board for their tailnet? Honestly, I've often found myself wanting a small/simple/easy-to-deploy discussion board a la pgBoard. The apps golink and tclip use the tailscale go library to expose the application securely on your tailnet. I thought this was a good fit for what I'm calling tdiscuss. That's why. Well, and it's fun!

Building

Install bazelisk, then see what platforms exist to build for: bazelisk query //... .. any of the :tdiscuss-{linux,darwin}-{amd,arm}64 are targets.

  1. bazelisk build --stamp --workspace_status_command="${PWD}/status.sh" //:tdiscuss-linux-amd64

Running

  1. Be a tailscale user
  2. Have an auth key created for the last step in this list.
  3. Set up a PostgreSQL database version 14+
  4. psql < sqlc/schema.sql
  5. DATABASE_URL=<valid dsn> TS_AUTHKEY=<key from step 2>

Success looks like

{
  "time": "2024-07-07T19:49:37.305788-07:00",
  "level": "INFO",
  "msg": "AuthLoop: state is Running; done"
}

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL