📄️ Getting started
To prevent any unwanted side effect, we highly recommend you to follow the steps described below in order and at the starting point of your app (either in your index.js in a Next.js application, in the equivalent file for other frameworks, or within a `` tag in your index.html). If you want to do the setup somewhere else, please keep in mind that :
📄️ Communication with the website
How does Mealz communicate with my website ?
📄️ Configure library context
Inform the library of who you are
📄️ Handle user login and logout
When Mealz scripts are active
📄️ Basket synchronization
This section is complex, but quite critical: this is where we make sure the items are correctly added to / removed from the user's cart when products were added or removed from Mealz features.
📄️ Versioning
The SSR API follows a versioning strategy to ensure backward compatibility and allow for iterative updates without disrupting existing integrations. Each version of the API is accessed through the following URL format:
📄️ Hooks
Set hooks callback
📄️ Example class
At the end of our setup, here's what the dummy setup class looks like :