A partner and I are working on website for a school project, and we have decided to use Vue.js and Nuxt.js as the front-end frameworks, and Vuesax as a UI Framework. Neither of us have any experience with these frameworks or frankly web development until recently. We ran into our first major issue when we were trying to create a profile drop down menu, where the items of the menu become visible when you click the profile avatar, however when trying to use the event listener, we realized Nuxt.js (based on node) was meant for universal javascript rather then strictly client side, so when we use "document.getElementId" for event handling, it says that it is not defined. (no DOM)
We really don't know what to do from here - find a new framework or plug-in/extension - and we are wondering if we could get some insight. We want to be able to use Javascript purely to handle frontend events. Moving forward, we also want to fetch information from a database (currently in MySQL but may change due to feedback), and we were thinking of using Spring Boot as our backend framework, as it allows us to handle requests, create servlets in Java(our most comfortable language)and also has Tomcat.
We have done a lot of research and consulted a lot of websites and acquaintances, but sometimes it is difficult to find things that pertain to something so specific, in this case our project. We are also having trouble finding a system of frameworks that is cohesive and compatible with each other. We are more than willing to learn, so any insight, feedback or suggestions are appreciated!
windowanddocumentshould be available in lifecycle hooks nuxtjs.org/guides/concepts/…getElementIdraw DOM with a framework and don't know if you do it right strongly suggests that you're doing it not in the way that it was intended by the framework. Consider addressing this first. was meant for server-side javascript rather then strictly client side - no, it was meant for universal JS, i.e. it renders on both server and client side. Use guards for conditional client- and server-only code -ifs and lifecycles. E.g.mountis ignored on server. See nuxtjs.org/guides/concepts/nuxt-lifecycle . What was your motivation for Nuxt? You may or not need it.