Zum Inhalt

Development Setup

Entwicklungsumgebung

  1. Installieren Sie die benΓΆtigten Tools:
  2. Node.js 18.x oder hΓΆher
  3. npm 7.x oder hΓΆher
  4. Git
  5. VS Code (empfohlen)

  6. Klonen Sie das Repository:

    git clone https://github.com/yourusername/solarlog.git
    cd solarlog
    

  7. Installieren Sie die AbhΓ€ngigkeiten:

    npm install
    

  8. Installieren Sie die Entwicklungswerkzeuge:

    npm install -D typescript @types/node @types/react
    

Code-Struktur

src/
  β”œβ”€β”€ components/      # React Komponenten
  β”œβ”€β”€ services/        # API und Wechselrichter Services
  β”œβ”€β”€ utils/          # Hilfsfunktionen
  β”œβ”€β”€ types/          # TypeScript Definitionen
  └── tests/          # Testdateien

server/
  β”œβ”€β”€ api/            # API Routen
  β”œβ”€β”€ services/       # Backend Services
  β”œβ”€β”€ models/         # Datenmodelle
  └── config/         # Serverkonfiguration

Entwicklungsserver starten

npm run dev

Tests ausfΓΌhren

npm test

Linting

npm run lint