Hi, I’m hoping someone can please help. I’m really stuck with how to set new metadata with the Management API in vanilla nodejs/express (no React/Angular etc).
I’m particularly stuck with where this code is meant to go? My use case is very simple, I just want a user to be able to click a fill in a 1 field form and update their metadata with the result.
Where does that code go (from the example)? In app.js? In a controller? In the template?
If someone could just very simply (I’m a beginner!) explain this simple use case I know I will be fine doing more actions from there.
Right now I have an app.js, which uses a router.js, which forwards to a userController, which at the moment sends the user profile information to a Pug template at localhost:3000/user like this :
Where it succesfully displays. If someone could explain very simple steps to use vanilla Express/NodeJS to simply add/read metadata from a user profile that would be amazing.