Skip to content

Latest commit

 

History

History
77 lines (53 loc) · 2.85 KB

File metadata and controls

77 lines (53 loc) · 2.85 KB

Strapi Headless CMS

Strapi is a pre-baked CMS that can be used with any kind of static / dynamic web pages.

Prerequisites

# nodejs need to be installed first
npm i -g yarn
  • heroku cli (if you want to do a manual deployment)
# macOS
brew tap heroku/brew && brew install heroku

How to use?

Please contact @vtno, @georgically or @jean to get access to the Strapi admin panel.

How to add new content type ?

Start development server by running

yarn develop

Strapi should be accessible via http://localhost:1337/admin If you access it for the first time you need to create an account.

Then click go to content type builder 2021-08-27 at 22 41

Click create new single type 2021-08-27 at 22 44

Then add your page name as the display name and add 2 fields for the content type:

  • markdown_content_th
  • markdown_content_en

Then commit and push the code. When the code is merged, the changes will be applied on https://pyconth-strapi.herokuapp.com/admin/

Go their and allow the APIs to be accessed by going to https://pyconth-strapi.herokuapp.com/admin/settings/users-permissions/roles then click on public: 2021-08-27 at 23 26

Tick the find checkbox and click save: 2021-08-27 at 23 27

Then you're done. Try out the API by running:

curl https://pyconth-strapi.herokuapp.com/<content-type>
# e.g
curl https://pyconth-strapi.herokuapp.com/faq
curl https://pyconth-strapi.herokuapp.com/about

To make the website aware of the change, add your page name in: https://github.com/PyConTH/www2021/blob/master/get_content_from_strapi.py then trigger the deployment to Netlify.

Manual Deployment

At the root dir of the project

make strapi/deploy

For more detail please see: strapi heroku deployment

Please contact @vtno to get access to the Heroku app.