'''
This commit is contained in:
@@ -19,7 +19,7 @@ Ein Reservierungssystem für 3D-Drucker, das automatisch TP-Link Tapo P110 Smart
|
||||
- **Frontend**: HTML/CSS/JavaScript mit Tailwind CSS
|
||||
- **Datenbank**: SQLite mit SQLAlchemy ORM
|
||||
- **Authentifizierung**: Flask-Login
|
||||
- **Hardware-Integration**: PyP110 für Tapo Smart Plug Steuerung
|
||||
- **Hardware-Integration**: PyP100 für Tapo Smart Plug Steuerung
|
||||
- **Automatisierung**: Integrierter Job-Scheduler für Drucker-Steuerung
|
||||
|
||||
## Systemanforderungen
|
||||
@@ -39,27 +39,28 @@ Ein Reservierungssystem für 3D-Drucker, das automatisch TP-Link Tapo P110 Smart
|
||||
|
||||
2. **Python-Abhängigkeiten installieren**:
|
||||
```bash
|
||||
cd backend/app
|
||||
pip install -r requirements.txt
|
||||
```
|
||||
|
||||
3. **Node-Abhängigkeiten installieren**:
|
||||
3. **Node-Abhängigkeiten installieren und CSS bauen**:
|
||||
```bash
|
||||
npm install
|
||||
npm run build:css
|
||||
```
|
||||
|
||||
4. **Datenbank initialisieren**:
|
||||
```bash
|
||||
python3.11 init_db.py
|
||||
python init_db.py
|
||||
```
|
||||
|
||||
5. **CSS generieren**:
|
||||
5. **Server starten**:
|
||||
```bash
|
||||
npm run build:css
|
||||
```
|
||||
|
||||
6. **Server starten**:
|
||||
```bash
|
||||
python3.11 app.py
|
||||
# Standardstart
|
||||
python app.py
|
||||
|
||||
# Oder mit spezifischem Port (empfohlen)
|
||||
python app.py --port=5000
|
||||
```
|
||||
|
||||
## API Endpunkte
|
||||
@@ -96,15 +97,13 @@ Die Anwendung nutzt Tailwind CSS für das Styling mit separaten Dateien für Lig
|
||||
### Tailwind Build
|
||||
|
||||
```bash
|
||||
# Light Mode CSS bauen
|
||||
npx tailwindcss -i ./static/css/input.css -o ./static/css/tailwind.min.css --minify
|
||||
# CSS bauen
|
||||
npm run build:css
|
||||
|
||||
# Dark Mode CSS bauen
|
||||
npx tailwindcss -i ./static/css/input.css -o ./static/css/tailwind-dark.min.css --minify --dark-mode 'class'
|
||||
# CSS im Watch-Modus (für Entwicklung)
|
||||
npm run watch:css
|
||||
```
|
||||
|
||||
Weitere Informationen zur CSS-Konfiguration finden Sie in der `TAILWIND_SETUP.md`.
|
||||
|
||||
## Sicherheit
|
||||
|
||||
- Nur angemeldete Benutzer können Druckaufträge erstellen
|
||||
|
||||
Reference in New Issue
Block a user