I already have a running react app. It is not a blog. Now I want to create a blog for it. I was checking Netlify CMS tutorials. I see that I will need to add an index.html file and config.yml in the admin folder at the root folder. The index.html file is the admin console of the CMS. The tutorials use two index.html files. One is the blog front. One is the CMS console front. Together they form a blog site with CMS integrated.
I then integrate the blog.js and blogAdmin.js into the main app. So that when the user navigates to www.mysite.com/blog, the app pulls up the blog front (blog.js) and when they navigate to www.mysite.com/blogAdmin, the app pulls up the blog admin front (blogAdmin.js).
Now any post made on the blog admin front would hit github and trigger a rebuild, and the logic in blog.js would pick those posts and render them on the UI.
Is my approach right?