Set up your company
Once, by whoever runs Juicebox for the company. Everything here is set in web/.env.local; this page only checks it.
Your company on GitHub (done)
Acme (demo), with 3 teams: Payments, Platform, Mobile.
Sign in with GitHub, for leads (to do)
Leads and managers sign in with GitHub to open the lists. It only reads who they are and which orgs and teams they are in.
Create an OAuth App on GitHub (Settings, Developer settings) with the callback
https://juiceboxx.vercel.app/api/auth/callback, then putGITHUB_CLIENT_IDandGITHUB_CLIENT_SECRETinweb/.env.local. If your org restricts OAuth apps, an owner has to approve it.A wallet that pays for the records (to do)
Each receipt is one Arkiv record. This wallet pays the small fee, then hands the record to the person who signed it, so the company never owns or edits it.
Not set. Put a key funded with tGLM (from the Arkiv faucet) in
ARKIV_PRIVATE_KEY.The company key, which opens the lists (done)
Employees encrypt their list to the company's public key on their laptop. Only the private key opens it, so only this copy (and members signed in to it) can read the lists.
Public key:
03e49c396dc743f5d6eb97ce8e7840c4aa4424e9a546cdc7968143309aacad40ecStorage for the lists (Swarm) (to do)
The encrypted lists are stored on Swarm. Without it, a list would be public on Arkiv.
Not set. Add the
SWARM_*lines fromweb/.env.example.Invite your people (to do)
Each person runs Juicebox on their own laptop: clone the repo, then
npm installandnpm run devinweb, and open http://localhost:3000. In My week, Setup they connect GitHub, join your company, and sign in with 0G. They pay for the private AI themselves, from their own 0G credits; the company hands out no AI key.Their
web/.env.localneeds only:ARKIV_PRIVATE_KEY=<a wallet with a little tGLM, it only pays the fees> COMPANY_PUBLIC_KEY=03e49c396dc743f5d6eb97ce8e7840c4aa4424e9a546cdc7968143309aacad40ec SWARM_API_URL=https://api.gateway.testnet.ethswarm.org SWARM_GATEWAY_URL=https://api.gateway.testnet.ethswarm.org SWARM_POSTAGE_BATCH_ID=<your batch id>
Never give anyone the company's private key: it opens everyone's lists.