Skip to content

Latest commit

 

History

History
37 lines (36 loc) · 2.75 KB

README.md

File metadata and controls

37 lines (36 loc) · 2.75 KB

Instruction from setting up Contentful account.

  1. Create contentful account using gmail account
  2. Delete training data: "Start from scratch" -> "Skip onboarding"

    2024-03-19 12_14_45-Window 2024-03-19 12_15_30-

  3. Open console. Install contentful-cli using "npm install -g contentful-cli". Doc - https://github.com/contentful/contentful-cli
  4. Login into your account using "contentful login"
  5. You can check your space id and environment id using commands "contentful space list" and "contentful space --space-id YOUR_SPACE_ID environment list"
  6. In order to add exhibit content model run "contentful space --space-id YOUR_SPACE_ID migration --environment-id YOUR_ENVIRONMENT_ID migrations/1_EPMGCIP-123_add-exhibit.js"
  7. Add secrets to github account (for local environment add variables to .env): a) go to "settings" -> "actions" -> "new repository secret"
    b) add "VITE_CONTENTFUL_SPACE_ID" - use command "contentful space list"
    c) add "VITE_CONTENTFUL_ENVIRONMENT" - use command "contentful space --space-id YOUR_SPACE_ID environment list"
    d) add "VITE_CONTENTFUL_CONTENT_DELIVERY_ACCESS_TOKEN" and "VITE_CONTENTFUL_CONTENT_PREVIEW_ACCESS_TOKEN". Tokens are available in "settings" -> "API keys" -> "Add API key"

    Screenshot 2024-03-19 110658

  8. Add QR code application: a) add REACT_APP_DOMAIN=YOUR_DOMAIN to .env b) build app using "npm run build" on local machine
    c) go to contentful - "App" -> "Custom apps" -> "Manage app definitions" -> "Create App"


    2024-03-19 11_26_24-NotificationsController cs - orthobullets - Visual Studio Code

    d) type "Name"
    e) enable "Hosted by Contentful"
    f) upload bundle - all files from "build"
    g) check "Entry sidebar"
    h) save

    Screenshot 2024-03-19 115635

  9. go to "Content model" -> "Exhibit" -> "Sidebar" -> click "plus" icon to add QR code application -> save

    2024-03-19 12_02_43-Settings 2024-03-19 12_03_51-Settings