tap>
, party style!
Start your party with this easy one-liner:
clojure -Sdeps '{:deps {com.github.markbastian/keg-party
{:git/url "https://github.com/markbastian/keg-party"
:sha "61acf0a731df04fc55af564ce939cffbe544e255"}}}' \
-X keg-party.main/run
By default, the server will run at http://localhost:3333
. You can change these defaults as described in the configuration section below.
For several other options, including building an uberjar, go to the Keg Party Server page.
Invite all your friends to the party by adding keg-party-client.jar
as a dependency to your project.
Configure your environment with the following environment variables:
KEG_PARTY_HOST
, defaults to http://localhostKEG_PARTY_PORT
, defaults to 3333KEG_PARTY_USERNAME
, defaults to(or (env :keg-party-username) (env :user))
KEG_PARTY_PASSWORD
, no default. This is your password from the setup page.- This is the only env var that you must set if you aren't using the defaults.
Once you've added the client jar and configured the environment, connect the tap target by invoking:
(do
(require '[keg-party.clients.rest-client :as kprc])
(kprc/tap-in!))
For an automated experience, do the following:
- Create a local dev or user profile if you don't already have one
- (e.g. add
:dev {:extra-paths ["dev"]}
to your~/.clojure/deps.edn
:aliases
)
- (e.g. add
- In that profile's extra paths, add a ns that looks something like this:
(ns user
(:require [keg-party.clients.rest-client :as kprc]))
(println "KEG PARTY TAPPING IN")
(kprc/tap-in!)
If you already have such a namespace, just add the above to it.
Ensure that this profile is active when you launch your REPL. When you do so, this code will be run and you are good to go.
Test your config you by doing something like this:
(tap> {:best-drink-ever :diet-dew
:the-next-best-thing :diet-dr-pepper})
Head on over to your party server and see the data!
When you connect to the server, you'll be directed to a login page:
If you haven't created an account, follow the "Sign up" link to do so:
Whether you are logging in to an existing account or creating a new one, you'll be immediately directed to the tap feed once you are signed in:
Start playing around and have some fun!
Copyright © 2023 Mark Bastian
Distributed under the Eclipse Public License version 1.0.