We created this site as a demonstration and an example of how to create a dynamic site and blog using a restdb.io database and pages with HTML and server side HandlebarsJS tags. On each page of this site you can click the View Source
button in the downright corner and you will see the HTML and restdb.io HandlebarsJS-tags. You can view the "master template" source here
This site is a work in progress and we will gradually make it better to showcase how a web site is a natural extension of a database service such as restdb.io
We have created a complete blog demo site to show how restdb.io and Markdown can be combined into an effective publishing solution.
It's easy to render html from markdown content in restdb.io.
What is markdown?
Markdown is a text-to-HTML conversion tool for web writers. Markdown allows you to write using an easy-to-read, easy-to-write plain text format, then convert it to structurally valid XHTML (or HTML).
Check out this demo page, click the view source to see how it's made.
Your database just got a web address. It's a prefix "www-" before your database name.
Check out this Twitter Bootstrap example page with full source code.
External users can now sign up and log in to your application which gets secure access through the REST API of your database.
restdb.io integrates directly with the Auth0 authentication service
Demo application with code here.
Restdb Pages lets you create any content from your database and deliver it on a custom route. However, sensitive content must be protected. That's why we made it simple to include user authentication in any Page. All you have to do is to add the #auth tag to the Page source code.
Check out the demos:
- Simple password protected page with just one user (hammer/pass)
- Advanced password protected page with users from a database Collection (guest/pass, jane/secret ...)
- Super secret server via HTTPS (guest/pass, jane/secret ...)
Dedicated servers can even have their own SSL certificate for your domain.
We've created an example to show you how to use realtime REST events with a restdb.io database. You can find it in the menu under "Demos" or click here
In restdb.io you can easily serve many different content types. Creating an RSS feed is done simply by creating a restdb.io Page, set up the data context/query, write the necessary XML markup and finally set the content type to text/xml.
The RSS feed we have created for this blog does not have any "View Source" like the other pages, but you can see it here.
Blogging from Sicily can be quite relaxing. Check out the thumbnail picture of the amazing water.