Khaled Garbaya 072b22bd86 Production (#44)
* test: Fix integration test

* fix: Fix Editorial feature

* chore(localization): move locales to i18n folder

* feat(modules): add image caption and shadow

* fix: clarify German translation🇩🇪
2017-11-08 17:28:01 +01:00
2017-11-07 17:33:32 +01:00
2017-11-08 15:39:24 +01:00
2017-11-08 15:39:24 +01:00
2017-11-08 15:39:24 +01:00
2017-11-08 17:03:47 +01:00
2017-11-08 15:39:24 +01:00
2017-11-07 17:33:32 +01:00
2017-11-07 17:33:32 +01:00
2017-09-19 13:17:10 +02:00
2017-11-08 15:39:24 +01:00
2017-11-08 16:25:49 +01:00
2017-11-08 17:15:45 +01:00

The node.js Example App

The node.js Example App aims at getting across the very basics of how to work with our headless content management system and how to build apps using our officially supported JavaScript SDK. Youll learn best practices for using the SDK to deliver content to your app and additionally learn some techniques for modelling your content in Contentful. We hope this app will give you a better understanding of how decoupling content from its presentation enables greater flexibility and facilitates shipping higher quality software more quickly. Contentful is a content management platform for web applications, mobile apps and connected devices. It allows you to create, edit and manage content in the cloud and publish it anywhere via powerful API. Contentful offers tools for managing editorial teams and enabling cooperation between organizations.

Screenshot of the example app

Requirements

  • Node 8
  • Git

Without any changes, this app is connected to a Contentful space that is not publicly accessible. The full end-to-end Contentful experience requires you to clone this space to your own Contentful account, and enables you to see how content editing in the Contentful web app and see those changes propagate to this running application. Signing up and getting started with our free plan is... free!

You can clone the space for this example app to your own Contentful account by following the instructions here. Once youve created a space, you can change the credentials in the variables.env. If you dont feel like changing code immediately, you can also inject credentials via url parameters like so:

https://localhost:3000?space_id=<YOUR_CLONED_SPACE_ID>&delivery_token=<YOUR_DELIVERY_TOKEN>&preview_token=<YOUR_PREVIEW_TOKEN>

Installing the Node.js app

git clone https://github.com/contentful/the-example-app.nodejs.git
npm install

Running the Node.js app

To start the server, run the following

npm run start:dev

Open https://localhost:3000 and take a look around. If you have configured the app to connect to a space that you own, use https://localhost:3000?enable_editorial_features. This URL flag adds an “Edit” button in the app on every editable piece of content which will take you back to Contentful web app where you can make changes. It also adds “Draft” and “Pending Changes” status indicators to all content if relevant.

Description
No description provided
Readme MIT 1.1 MiB
Languages
JavaScript 60%
Pug 39.8%
Dockerfile 0.2%