Compare commits
7 Commits
6755f1ddf9
...
main
Author | SHA1 | Date | |
---|---|---|---|
0e5851c4c1 | |||
82a2b886e0 | |||
0e826dd42f | |||
5031ebf4b2 | |||
bb33b3d533 | |||
286b23bf93 | |||
e277542a9d |
@@ -6,6 +6,8 @@ COPY game_collection/requirements.txt ./
|
|||||||
RUN pip install --no-cache-dir -r requirements.txt
|
RUN pip install --no-cache-dir -r requirements.txt
|
||||||
|
|
||||||
COPY game_collection .
|
COPY game_collection .
|
||||||
|
COPY start.sh .
|
||||||
|
RUN chmod +x start.sh
|
||||||
|
|
||||||
EXPOSE 3004
|
EXPOSE 3004
|
||||||
|
|
||||||
|
4
api.txt
4
api.txt
@@ -1,3 +1,7 @@
|
|||||||
|
# API URL
|
||||||
|
|
||||||
|
https://mikaapi.fire-devils.org
|
||||||
|
|
||||||
# API Endpoints
|
# API Endpoints
|
||||||
|
|
||||||
## Benutzerverwaltung
|
## Benutzerverwaltung
|
||||||
|
@@ -2,9 +2,11 @@ version: '3.8'
|
|||||||
|
|
||||||
services:
|
services:
|
||||||
app:
|
app:
|
||||||
|
container_name: MikaApp
|
||||||
build: .
|
build: .
|
||||||
ports:
|
ports:
|
||||||
- "3004:3004"
|
- "3004:3004"
|
||||||
volumes:
|
volumes:
|
||||||
- /home/manuel/docker/MikaApp/instance:/usr/src/app/instance
|
- /home/manuel/docker/MikaApp/instance:/usr/src/app/instance
|
||||||
command: ["./start.sh"]
|
command: ["./start.sh"]
|
||||||
|
restart: unless-stopped
|
||||||
|
@@ -155,18 +155,26 @@ Dies ist eine Flask-basierte API zur Verwaltung einer Sammlung von Spielen. Die
|
|||||||
```bash
|
```bash
|
||||||
git clone <repository-url>
|
git clone <repository-url>
|
||||||
cd game_collection
|
cd game_collection
|
||||||
```
|
```bash
|
||||||
|
|
||||||
2. Installiere die Abhängigkeiten:
|
2. Installiere die Abhängigkeiten:
|
||||||
```bash
|
```bash
|
||||||
pip install -r requirements.txt
|
pip install -r requirements.txt
|
||||||
```
|
```
|
||||||
|
|
||||||
3. Starte die Anwendung:
|
3. Starte die Anwendung lokal:
|
||||||
```bash
|
```bash
|
||||||
flask run
|
flask run
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## Anwendung als Docker-Container starten
|
||||||
|
|
||||||
|
Um die Anwendung als Docker-Container zu starten, verwenden Sie den folgenden Befehl:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
docker compose up
|
||||||
|
```
|
||||||
|
|
||||||
## Datenbank
|
## Datenbank
|
||||||
|
|
||||||
Die Anwendung verwendet SQLite zur Speicherung von Benutzern und Spielen. Die Datenbank wird beim ersten Start der Anwendung automatisch erstellt.
|
Die Anwendung verwendet SQLite zur Speicherung von Benutzern und Spielen. Die Datenbank wird beim ersten Start der Anwendung automatisch erstellt.
|
||||||
|
Reference in New Issue
Block a user