All Projects → contentful-userland → contentful.ex

contentful-userland / contentful.ex

Licence: MIT license
Elixir SDK for the Contentful Delivery API

Programming Languages

elixir
2628 projects

Projects that are alternatives of or similar to contentful.ex

Grav
Modern, Crazy Fast, Ridiculously Easy and Amazingly Powerful Flat-File CMS powered by PHP, Markdown, Twig, and Symfony
Stars: ✭ 13,067 (+40734.38%)
Mutual labels:  content
hext
Markup language and tool for generating binary files
Stars: ✭ 23 (-28.12%)
Mutual labels:  hex
khroma
A collection of functions for manipulating CSS colors, inspired by SASS.
Stars: ✭ 28 (-12.5%)
Mutual labels:  hex
Unite Cms
Really flexible headless CMS, built on top of Symfony and GraphQL.
Stars: ✭ 242 (+656.25%)
Mutual labels:  content
contenta docker
No description or website provided.
Stars: ✭ 53 (+65.63%)
Mutual labels:  content
monobit
Tools for working with monochrome bitmap fonts
Stars: ✭ 124 (+287.5%)
Mutual labels:  hex
Openolat
Learning Management System OpenOlat
Stars: ✭ 135 (+321.88%)
Mutual labels:  content
dehex
🎨👀 R package: learn to assess a colour hex code by eye
Stars: ✭ 29 (-9.37%)
Mutual labels:  hex
content-cli
Content CLI is a command line interface tool used to manage content in Celonis EMS
Stars: ✭ 39 (+21.88%)
Mutual labels:  content
redactor2
Integriert den Redactor WYSIWYG-Editor in Version 2
Stars: ✭ 55 (+71.88%)
Mutual labels:  content
django-addendum
📜 Easily edit arbitrary text snippets on a site without a full-fledged CMS or issuing another site release. Like a mini-CMS for every site.
Stars: ✭ 71 (+121.88%)
Mutual labels:  content
Alfred-Colors-workflow
hex <=> rgb <=> hsl
Stars: ✭ 28 (-12.5%)
Mutual labels:  hex
react-bones
💀 Dead simple content loading components for React and React-Native. 💀
Stars: ✭ 42 (+31.25%)
Mutual labels:  content
Contentify
Contentify is an esports CMS based on the PHP framework Laravel
Stars: ✭ 189 (+490.63%)
Mutual labels:  content
arabic-programming-blogs
أهم المدونات والمصادر العربية لتعلم البرمجة وتطوير الويب
Stars: ✭ 41 (+28.13%)
Mutual labels:  content
Spring Content
Cloud-Native Storage and Enterprise Content Services (ECMS) for Spring
Stars: ✭ 151 (+371.88%)
Mutual labels:  content
serde with
This crate provides custom de/serialization helpers to use in combination with serde's `with`-annotation and with the improved `serde_as`-annotation.
Stars: ✭ 392 (+1125%)
Mutual labels:  hex
exe2hex
Inline file transfer using in-built Windows tools (DEBUG.exe or PowerShell).
Stars: ✭ 284 (+787.5%)
Mutual labels:  hex
whimsy
Apache Whimsy
Stars: ✭ 47 (+46.88%)
Mutual labels:  content
hxd
Speedy colored hexdump
Stars: ✭ 33 (+3.13%)
Mutual labels:  hex

Contentful Elixir SDK

Elixir SDK for the Contentful Content APIs.

Elixir CI Coverage Status Hex.pm License

Contentful provides a content infrastructure for digital teams to power content in websites, apps, and devices. Unlike a CMS, Contentful was built to integrate with the modern software stack. It offers a central hub for structured content, powerful management and delivery APIs, and a customizable web app that enable developers and content creators to ship digital products faster.

API Overview

Contentful Delivery API (CDA)

The official docs can be found here: https://www.contentful.com/developers/docs/references/content-delivery-api/.

The API provides the content for Contenful apps. It's read only and the recommended way to deliver large amounts of content.

Contentful Management API (CMA)

The official docs can be found here: https://www.contentful.com/developers/docs/references/content-management-api/.

The API provides the capability to manage content you have stored with Contentful.

Contentful Preview API (CPA)

The official docs can be found here: https://www.contentful.com/developers/docs/references/content-preview-api/.

The Preview API can be used to access the latest versions and drafts of your content. It maintains compatibility with the Contentful Delivery API.

Installation

  1. Add contentful to your list of dependencies in mix.exs:
  def deps do
    [{:contentful, "~> 0.4.0"}]
  end
  1. Ensure contentful is started before your application:
  def application do
    [applications: [:contentful]]
  end

Usage

For the usage, see the documentation published to hex.

Local documentation

In case you want to compile the docs locally, run:

$ mix docs

# to view, we recommend:
$ cd doc && python -m SimpleHTTPServer # or any other quick way to serve static content locally

then open http://localhost:8000.

Contributing & Development

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

Notes on setup

This library makes use of the Contentful APIs. It helps to have an account and to setup a secrets file for testing:

$ cat config/secrets.dev.exs
config :contentful, delivery: [
  access_token: "<my_cda_access_token>",
  environment: "master",
  space_id: "<my_space_id>"
]

# for testing
$ cat config/secrets.test.exs
config :contentful, delivery: [
  access_token: "<my_cda_access_token>",
  environment: "testing",
  space_id: "<my_space_id>"
]

We freeze requests by using exVCR, in case you want to rebuild these files, make sure that test assertions match.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].