This project is a demo to show how we can fetch a menu from the WordPress REST API and use it in a Frontity project. This allows content creators/editors to make changes to the menu structure in the WordPress admin and for those changes to dynamically show up in Frontity.
You will need to install and activate the "WP-REST-API V2 Menus" plugin. Menus are not natively included in the WordPress REST API. This plugin creates endpoints which allows us to fetch menus.
A tutorial demonstrating the code in this repo can be seen in the following episode of Frontity Talks:
More info can be found on this blog post.
npm install
npx frontity dev
Runs the app in development mode. Open http://localhost:3000 to view it in the browser.