- 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
28 lines
909 B
Plaintext
28 lines
909 B
Plaintext
|
|
# 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
|