Complete setup documentation for local server and live cPanel deployment.
.env and run.py
The files .env and run.py are included in .gitignore because they are different
in local and live environments.
.env is ignoredSECRET_KEY and database credentials.run.py is ignoredapp.run(debug=True).application = app.run.pyrun.pyInstall Python 3.9 or a compatible version.
Install MySQL or MariaDB on your computer and make sure the database server is running.
If the project already exists locally, update it using:
Windows:
Linux / Mac:
.envrun.pyThen open:
In cPanel, open MySQL Databases and create:
Go to Setup Python App and configure:
If code is already there, update using:
.envrun.py
The following SQL can be used as the startup structure for the local database.
This includes the main system tables: users, datasets, and saved_queries.
Optional default users:
.gitignore