thacoon/verlinkste
No description
- Python 61%
- HTML 35%
- Shell 1.6%
- Dockerfile 1.4%
- CSS 0.7%
- Other 0.3%
| .woodpecker | v0.0.1 ( #1 ) | |
| docs | v0.0.1 ( #1 ) | |
| js_tools | v0.0.1 ( #1 ) | |
| pre_commits | v0.0.1 ( #1 ) | |
| server | v0.0.1 ( #1 ) | |
| .dockerignore | v0.0.1 ( #1 ) | |
| .env.required | v0.0.1 ( #1 ) | |
| .env.stack.example | v0.0.1 ( #1 ) | |
| .gitignore | v0.0.1 ( #1 ) | |
| .pre-commit-config.yaml | v0.0.1 ( #1 ) | |
| Caddyfile | v0.0.1 ( #1 ) | |
| Dockerfile | v0.0.1 ( #1 ) | |
| gunicorn.conf.py | v0.0.1 ( #1 ) | |
| LICENSE | v0.0.1 ( #1 ) | |
| manage.py | first commit | |
| podman-compose.dev.yaml | v0.0.1 ( #1 ) | |
| pyproject.toml | v0.0.1 ( #1 ) | |
| README.md | v0.0.1 ( #1 ) | |
| run.sh | v0.0.1 ( #1 ) | |
| stack.yaml | v0.0.1 ( #1 ) | |
| STYLE_GUIDE.md | v0.0.1 ( #1 ) | |
| uv.lock | v0.0.1 ( #1 ) | |
Verlinkste
(Not yet) Live
You can play it here: https://verlinkste.com
Development
Container
Develop inside the development container:
Build it and attach to the cmd line inside:
podman compose -f podman-compose.dev.yaml up --build -d && \
podman compose -f podman-compose.dev.yaml exec app /bin/bash
Podman does not seem to reliable rebuild the container if e.g. only the Dockerfile changes if the services are still up:
podman compose -f podman-compose.dev.yaml down && \
podman compose -f podman-compose.dev.yaml up --build -d && \
podman compose -f podman-compose.dev.yaml exec app /bin/bash
Start it and attach to the cmd line inside:
podman compose -f podman-compose.dev.yaml up -d && \
podman compose -f podman-compose.dev.yaml exec app /bin/bash
If you get the error: modprobe: ERROR: could not insert 'ip_tables': Operation not permitted you need to load
the ip_tables kernel module: modprobe ip_tables
Found the solution here.
If you are using Docker, just replace podman with docker.
Coding
Run the server:
podman compose -f podman-compose.dev.yaml exec app /bin/bash && \
python manage.py runserver 0.0.0.0:8000
Run tailwindcss and watch for changes:
podman compose -f podman-compose.dev.yaml exec app /bin/bash && \
cd js_tools && \
npm run tailwind-watch
Update the bundle.js using webpack:
podman compose -f podman-compose.dev.yaml exec app /bin/bash && \
cd js_tools && \
npm run build
### Pre-Commit
We are using pre commit to check a few things like linting or types before commiting, to avoid that the CI fails because
of this.
You need to install [pre-commit](https://pre-commit.com/) and tpo enable it for your local repository run:
```shell
pre-commit clean && pre-commit install
If you want to test it without committing you can run it with:
pre-commit run