Add .opencode/rules/backend.md
This commit is contained in:
20
.opencode/rules/backend.md
Normal file
20
.opencode/rules/backend.md
Normal file
@@ -0,0 +1,20 @@
|
||||
# Backend Rules
|
||||
|
||||
## PHP
|
||||
|
||||
- PHP 8+ Syntax
|
||||
- Prepared Statements für DB Queries
|
||||
- Input Validation immer auf Server-Seite
|
||||
- Keine secrets in Code — .env nutzen
|
||||
|
||||
## REST API
|
||||
|
||||
- JSON als Standard-Format
|
||||
- HTTP Status Codes korrekt nutzen
|
||||
- GET/POST/etc. semantisch richtig
|
||||
|
||||
## SQLite
|
||||
|
||||
- Transactions für mehrere Writes
|
||||
- FOREIGN KEY Constraints aktiviert
|
||||
- Indexes auf häufige Query-Spalten
|
||||
Reference in New Issue
Block a user