I want to create an application i.e svg-edit that use javascript for client side operations but I want to integrate it with ExpressJS.
Task needed: 1. User Authentication page 2. After authentication depending on the user name the user is directed to the svg-edit page but the background image and the svg is the value from the database. 3. Auto saving and saving on close.
For this I have using ExpressJS and svg-edit 2.6.
My Approach: 1. I will create a page auth.html in /views of Expresss 2. Post the page and in the route handler authenticate it and then redirect to the svg-edit.html the whole folder with all its related .js files are put into /views so it will redirect it.
The porblem is that when server redirects i want to send the image location, username to the svg-edit.html page so that it changes the background w.r.t the value gained.
What is the best way to do such an operation.
Since I am new at ExpressJs so before writing the code. I need suggestion for the structure.