Beaker includes a social network of personal websites. We call these websites the "Profile Drives." Your profile drive acts as your personal space and your identity on the network. It's also used by applications to publish your content.
Every user has a "Profile Hyperdrive" which represents them on the network. Learn more.
In this guide, we're going to personalize your profile drive, find some other users to add to your address book, get you listed in Beaker's User Directory, and say hello on your social media feed.
Customizing your profile drive
During Beaker's setup, you filled out a name, picture, and bio for your profile. You can visit your profile drive by clicking your picture at the top right of the browser.
You will find your profile drive is very plain. That's because we want you to build it! (Frankly it was a cost-cutting measure but don't tell anyone.)
Open the editor to see the source code:
Let's add a button! This button will help other users add your profile drive to their address book. Here is the code:
Now your visitors have a quick way to follow your site! (Read more about the beaker.contacts API.)
Your profile name, bio, and picture can be changed using the "Drive Properties" dialog. The profile page won't update automatically, but we can add that!
Now your profile drive will read your name and bio on load and display it on the page. (Read more about the beaker.hyperdrive API.)
Finding other users
It's feeling pretty lonely in here! Let's find some people to add to your address book.
Beaker maintains a user directory. You can find a link to it in the top right of the UI.
You can visit the profiles by clicking on their names. If you find somebody you want to follow, click on the "Add to Address Book" button next to their name.
Adding yourself to the user directory
To add yourself to the directory, click "+ Add Your Profile." You'll be prompted to select your profile drive. Do that and your profile will be added!
Say hello on your feed
Now that you've added some people to your address book, let's say hi on your social media feed.
This feed app will be another hyperdrive which reads and writes posts from your profile drive. It lives separately from your profile.
Visit the "Blahbity Blog" app at this URL:
You'll see the following screen:
After you select your profile, you'll see posts from people in your address book. Any posts you create will be written to your profile drive under the
/microblog folder. Posts are Markdown by default (.md) but you can post .txt, HTML, images, video, and audio. (The HTML goes in an
<iframe> just to be safe.)
You can make posts and see posts from your network, and you can fork the social media feed app to change the styles and add new features.
From here, if you want to start hacking on some websites, read up on creating new hyperdrives and using the editor. If you love the idea of remixing other people's work, you should learn about forking hyperdrives. If you're a fan of command lines, check out Beaker's Webterm.
The Beaker Developer Portal has a directory of useful resources for getting into code:
- Templates. Pre-made hyperdrives you can copy.
- Tutorials. More developer-focused guides to teach you about building on Beaker.
You can also find Beaker's new Web APIs here.