I have created the landing page and the admin page(where you will be able to set the cupcake for the week) for the wedsite. I have also set it up on github pages so that i can host it for free.
The way I made the admin page update the cupcakes list is the following.
The admin page edits the cupcake list in the browser, using the locally saved GitHub token, then sends a PUT request to GitHub’s Contents API.That request commits the new public/data/weekly-cupcakes.json to karwals/Cupcakes on master, which triggers the GitHub Pages deploy workflow.
i have not made the images of the cupcakes work yet that is the next step. and making the order now work.