Database
A photo gallery built on the Skapi database. Every post is a record in the table posts
with an image file, a description and tags. The page shows how records are uploaded with files, queried
in different orders and connected to each other:
- Posts are uploaded with
skapi.postRecord()and fetched withskapi.getRecords(), four at a time. - A private post is uploaded to the access group
private, so only its uploader can read it. - A like is a record in the table
likesthat references the post. The reference count of a post is its number of likes. - A comment is a record in the table
commentswith the compound index namecomment.<record_id>, which is also what "Most commented" is ordered by. - Subscribing to an uploader adds their posts to your feed, fetched with
skapi.getFeed().
Post a photo
Posts
Loading posts...