To start using Realm, you only need a text editor (like Vim or VSCode), a web browser, and there’s no need for a localhost setup (unless you’re using the import-element
tag).
Getting started is a breeze! Just follow these simple steps:
Create a new HTML file.
Add the necessary scripts and styles from a CDN inside the <head>
tag of your HTML file.
Double-click the HTML file to open it in your web browser.
That’s it! You’re now ready to dive into Realm.
Add the following code to your HTML file:
<script src="https://cdn.jsdelivr.net/npm/@realmorg/realm/dist/realm.production.min.js"></script>
<link
href="https://cdn.jsdelivr.net/npm/@realmorg/realm/dist/realm.min.css"
rel="stylesheet" />
With Realm installed, let’s create your very first custom element.