Devbox demo for the OKC WebDevs Tool Talks hosted by Clevyr.
- Docker
- While devbox can run PostgreSQL as a plugin, it's more efficient to run it in a container while developing the frontend/backend of an application.
- Clone this repository:
git clone https://github.com/pythoninthegrass/devbox_demo.git && cd devbox_demo
- Run
devbox shell - Start services1
devbox services up(terminal user interface)devbox services start(daemon)
- Navigate to localhost:5000 in your browser
- Stop services with either
devbox services stoporF10in the TUI - Deactivate the shell with
exit
# run tests
devbox run test
# add packages
devbox search <package>
devbox add <package> # add latest package
devbox add <package>@<version> # add specific version
# remove packages
devbox remove <package>
# use poetry to get all dependencies
devbox shell
poetry shell
poetry install
# update requirements
poetry add <package>
# export requirements.txt (uv/pip compatibility)
devbox run exportFix Tailwind CSS stylingAdd a database- Add taskfile
- Add CI/CD using
devbox
- devbox docs
- process-compose
- Orchestrate your Dev Environment using Devbox
- postgres docker image
- flask
- tailwindcss
Footnotes
-
devbox shelldoes not natively read the.envfile the same way asdocker compose. Usedevbox shell --env-file .envto pass the.envfile to the shell. ↩
