I am working on my first web development project, SQLite4Web.
Long story short: SQLite4Web is a web interface for SQLite database files. The user can access their database via
dbToken is the database's unique identifier.
In all cases, the HTML file sent to the user is the same (index.html). The html file, however, includes a script checking if there is a token in its HREF (as a query parameter or as a path). If it finds a dbToken, it makes a call to the API to receive the database's info (as JSON) and displays it. If the script, however, does not find any dbToken, it shows the normal homepage.
So basically, all website front-ent management is done in one single HTML file, client-side. Is this bad practice? (How) can I improve this system?
Thanks in advance for your help!