This repository has been archived on 2026-03-30. You can view files and clone it, but cannot push or open issues or pull requests.
RepApp/README.md

47 lines
966 B
Markdown
Raw Permalink Normal View History

2023-04-16 08:03:37 +00:00
# RepApp
2023-04-17 18:57:55 +00:00
2023-04-16 08:03:37 +00:00
Web App um Reparaturtermine zu vereinbaren.
2023-04-17 18:57:55 +00:00
For documentation see https://makes-hacks-hip.github.io/RepApp/.
2023-04-19 19:57:41 +00:00
## Setup for development
- Clone repo
2023-04-25 09:06:31 +00:00
- `python -m venv venv`
- `source venv/bin/activate`
- `cd rc_hip`
- `python manage.py makemigrations`
- `python manage.py migrate`
- `python manage.py createsuperuser`
- `python manage.py runserver`
2023-04-19 19:57:41 +00:00
2023-04-17 18:57:55 +00:00
## Build Docker image
- Build the image: `docker build -t repapp .`
- Run the image:
```bash
docker run --rm -d \
-p 127.0.0.1:8020:8020 \
--name repapp \
--env DJANGO_SUPERUSER_USERNAME=suba \
--env DJANGO_SUPERUSER_PASSWORD=ThePassword \
--env DJANGO_SUPERUSER_EMAIL=noreply@example.com \
repapp`
```
- Open `http://127.0.0.1:8020/` in your browser
2023-04-25 09:06:31 +00:00
## Run tests
### Unit tests
Run `python manage.py test`
### LiveServer Tests
Run `python manage.py test repapp.live_tests.WorkflowTests`
2023-08-30 19:47:34 +00:00
### Coverage
- `coverage run --source='.' manage.py test`
- `coverage report` or `coverage html`