This guide assumes you've never used a terminal, and you won't need one. You'll create two free accounts, click through a few screens, and end with your own copy of Locket running at a public address.
GitHub is where the code lives.
- Go to
github.comin your browser. - Click Sign up (top right).
- Enter your email, pick a password and a username, and follow the steps until you land on your home page.
- On github.com, click the + button in the top right corner, then New repository.
- In Repository name, type
locket. - Leave everything else as it is and click Create repository.
- On the page that appears, click the link that says uploading an existing file.
- Open the folder with the Locket code on your computer. Select
everything inside it EXCEPT the folders named
node_modulesand.next(if you see them), and drag it all into the GitHub page. - Wait for the upload bar to finish, then click Commit changes at the bottom.
Vercel is the service that turns the code into a live website. The free plan is plenty.
- Go to
vercel.com. - Click Sign Up.
- Choose Continue with GitHub and click Authorize Vercel when GitHub asks. That's the whole account setup.
- On your Vercel home page, click Add New... (top right), then Project.
- You'll see a list of your GitHub repositories. Find
locketand click Import next to it. - Don't change any settings. Locket needs no environment variables and no secrets.
- Click Deploy.
- Watch the build run for a minute or two. When confetti appears, click the preview image or the Visit button.
That's it. The address looks like locket-yourname.vercel.app, and you
can share it with anyone.
- The build fails. Open the build log Vercel shows, scroll to the
first red line, and check that step 2.5 uploaded every file and folder
(the
app,components,lib,public, andtypesfolders, plus the loose files likepackage.json). Missing files are the usual cause. - The page loads but looks broken. Hard-refresh once (Ctrl+Shift+R, or Cmd+Shift+R on a Mac).
- You update the code later. Upload the changed files to GitHub the same way as step 2.4; Vercel notices and redeploys by itself.
One honest note: Locket stores everything on each visitor's own device. Deploying it gives people the app, not access to anyone's vault. There is nothing on the server to leak, because there is no server code at all.