Major updates: Setup environment, database, permissions and admin access

- Created virtual environment and installed requirements
- Set up MariaDB database with user 'sa' and database 'recticel'
- Created order_for_labels table for printing functionality
- Implemented role-based permissions system with admin role
- Added admin access to print label modules and etichete functionality
- Fixed template routing issues in main_page_etichete.html
- Updated app to run on port 8781 with network access (0.0.0.0)
- Added systemd service file for background deployment
- Created installation documentation
This commit is contained in:
scheianu ionut
2025-10-07 22:07:06 +03:00
parent 957c8eca4d
commit a8811b94b7
11 changed files with 170 additions and 136 deletions

27
to_do_install.txt Normal file
View File

@@ -0,0 +1,27 @@
# Steps to Prepare Environment for Installing Python Requirements
1. Change ownership of the project directory (if needed):
sudo chown -R $USER:$USER /home/ske087/quality_recticel
2. Install Python venv module:
sudo apt install -y python3-venv
3. Create and activate the virtual environment:
python3 -m venv recticel
source recticel/bin/activate
4. Install MariaDB server and development libraries:
sudo apt install -y mariadb-server libmariadb-dev
5. Create MariaDB database and user:
sudo mysql -e "CREATE DATABASE recticel; CREATE USER 'sa'@'localhost' IDENTIFIED BY '12345678'; GRANT ALL PRIVILEGES ON recticel.* TO 'sa'@'localhost'; FLUSH PRIVILEGES;"
6. Install build tools (for compiling Python packages):
sudo apt install -y build-essential
7. Install Python development headers:
sudo apt install -y python3-dev
8. Install Python requirements:
pip install -r py_app/requirements.txt