Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/contentful/sinatra-blog
https://github.com/contentful/sinatra-blog
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/contentful/sinatra-blog
- Owner: contentful
- License: mit
- Archived: true
- Created: 2014-03-21T09:48:10.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2014-04-04T11:50:37.000Z (over 10 years ago)
- Last Synced: 2024-09-22T15:32:29.088Z (about 2 months ago)
- Language: CSS
- Size: 293 KB
- Stars: 8
- Watchers: 8
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# Sample Sinatra Application using the contentful.com Delivery API
Contentful is a CMS as a Service and allows you to create your own platforms without building the same backend over and over again.
This demo was created during our hackathon at the contentful.com office in the heart of Berlin.
## The App
The app itself uses [Sinatra](http://www.sinatrarb.com/) and the [contentful.rb](https://github.com/contentful/contentful.rb) library.
The permalinks are created dynamically and stored in Redis. Also the content itself is cached as serialized JSON to improve the page load time.
## Using it
Clone the repository and run
bundle installAfter successfully installing the dependencies execute
rackupYou need to create a space and a content model to be able to use it.
### BlogPost Content-Type
![BlogPost](images/BlogPost.png "BlogPost")### BlogCategory Content-Type
![BlogCategory](images/BlogCategory.png "BlogCategory")**This code is a showcase on how to use the API and the Ruby library.**
## Disclaimer
This project is at proof of concept stage and is built on a best
effort kind of approach without strict guarantees of correctness.## License
Copyright (c) 2014 Contentful GmbH - Andreas Tiefenthaler. See LICENSE.txt for further details.