From 69d8e24f2d34639bdaa4464f1a09828d130f417a Mon Sep 17 00:00:00 2001 From: Guillem Hernandez Sola Date: Sun, 16 Sep 2018 15:44:21 +0200 Subject: [PATCH] Added new readme --- README.md | 37 ------------------------------------- 1 file changed, 37 deletions(-) diff --git a/README.md b/README.md index 4aec314..0bb55fd 100644 --- a/README.md +++ b/README.md @@ -37,43 +37,6 @@ npm run start:dev Open [http://localhost:3000](http://localhost:3000) and take a look around. - -## Steps for read and write access (recommended) - -Step 1: Install the [Contentful CLI](https://www.npmjs.com/package/contentful-cli) - -Step 2: Login to Contentful through the CLI. It will help you to create a [free account](https://www.contentful.com/sign-up/) if you don't have one already. -``` -contentful login -``` -Step 3: Create a new space -``` -contentful space create --name 'My space for the example app' -``` -Step 4: Seed the new space with the content model. Replace the `SPACE_ID` with the id returned from the create command executed in step 3 -``` -contentful space seed -s '' -t the-example-app -``` -Step 5: Head to the Contentful web app's API section and grab `SPACE_ID`, `DELIVERY_ACCESS_TOKEN`, `PREVIEW_ACCESS_TOKEN`. - -Step 6: Open `variables.env` and inject your credentials so it looks like this - -``` -NODE_ENV=development -CONTENTFUL_SPACE_ID= -CONTENTFUL_DELIVERY_TOKEN= -CONTENTFUL_PREVIEW_TOKEN= -PORT=3000 -``` - -Step 7: To start the express server, run the following -```bash -npm run start:dev -``` -Final Step: - -Open [http://localhost:3000?editorial_features=enabled](http://localhost:3000?editorial_features=enabled) and take a look around. 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. - ## Create the Docker Container You can also run this app as a Docker container: