Git Product home page Git Product logo

cma-cookies-demo's Introduction

CMA Cookies Demo

Build Status

This app illustrates basic usage of the Management API SDK from the context of an Android Wear project.

Intro:

Contentful is the flexible content management platform that makes it easy to serve content to mobile and web applications. Manage your content with your team once and simply publish it to any screen. Contentful gives your editors an easy-to-use editing interface to collaborate on content and developers a well-documented API to easily set up your delivery channels. With this app, you can preview the content from your Contentful workspaces by simply inserting the space ID and password. This will give you a sense of how your data will look on a mobile device without any further styling done to it. If you don’t have a Contentful account yet, you can browse through some more information in this app and sign up for free. We look forward to your feedback :) Happy publishing!

Screenshots

Screenshots

Setup

In the Android SDK Manager, ensure that the following are installed, and are updated to the latest available version:

  • Tools > Android SDK Platform-tools (rev 21 or above)
  • Tools > Android SDK Tools (rev 24 or above)
  • Tools > Android SDK Build-tools version 21 (rev 21.1.1 or above)
  • Android 5.0 > SDK Platform (API 21)
  • Android 4.4W.2 (Wear) > SDK Platform (API 20)
  • Extras > Android Support Repository
  • Extras > Android Support Library
  • Extras > Google Play services
  • Extras > Google Repository

Also, make sure to have JDK 7 installed on your machine, and configured in your IDE.

Next, log into the Contentful app and perform the following steps:

  • Create a new Space.
    • Create a new Content Type within that Space.
      • Add a field of type TEXT to the Content Type, name it "text".
  • Generate a Delivery API access token for this Space.
  • Generate a Management API access token.
  • Edit the "config.xml" file under the "mobile/src/main/res" folder. Example:
<?xml version="1.0" encoding="utf-8"?>
<resources>
  <string name="cf_space_id">SPACE-ID</string>
  <string name="cf_content_type_id">CONTENT-TYPE-ID</string>
  <string name="cf_token_cda">CDA-ACCESS-TOKEN</string>
  <string name="cf_token_cma">CMA-ACCESS-TOKEN</string>
</resources>

Credits

License

Copyright (c) 2015 Contentful GmbH. See LICENSE.txt for further details.

cma-cookies-demo's People

Contributors

tomxor avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.