Dockerize

This commit is contained in:
Eden Kirin
2024-05-18 19:19:16 +02:00
parent 382e514d03
commit 2d56d06649
6 changed files with 122 additions and 15 deletions

View File

@ -1 +1,36 @@
# Django-htmx demo
## Run demo
### As docker container
```
make docker-build
make docker-run
```
Browse to [localhost:8000](http://localhost:8000).
Later, start and stop docker container using:
```
docker start django-htmx
```
and
```
docker stop django-htmx
```
### As standard local Django app
- requirements: Python 3.10 or 3.11
- [poetry](https://python-poetry.org)
```
poetry install
make run
```
Browse to [localhost:8000](http://localhost:8000).