Dockerize
This commit is contained in:
35
README.md
35
README.md
@ -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).
|
||||
|
||||
Reference in New Issue
Block a user