So for the past few days I have been developing a simple web base app to allow waiters at my brothers bar to manage tables and tabs for guests.
I have everything setup and ready to be pushed to beta testings.
But one thing that keeps bugging me is the way I currently have the bars layout setup in the app.
What I have done is created a
svg <rect> shapes and hard coded them in the view file *sigh*. Which we all know is a terrible practice especially if there is a change in the bars layout.
So what I would like to hear from this community is, how you would try and do this so that I can allow maybe an admin to alter this layout if they want it to look a bit different. Maybe add some other config options to it. Because at the moment it doesn't look that good and is not dynamic at all. I was thinking maybe using the
<canvas> and then store / load that data from a db. But was not able to find a good tutorial for it online.
All I was able to find was how to like store stuff from a canvas to png file.
Is there a way to accomplish this without having to implement a complicated library or have a 3rd party service embedded in the app ?
If needed, these are the project specs:
- Langues: PHP, jQuery
- Database: MySQL
I didn't use any frameworks for this project.
Thanks for any feedback / help. :)