Skip to content

pythoninthegrass/devbox_demo

Repository files navigation

devbox_demo

devbox services

Devbox demo for the OKC WebDevs Tool Talks hosted by Clevyr.

Minimum Requirements

Recommended Requirements

  • 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.

Quickstart

  1. Clone this repository:
    git clone https://github.com/pythoninthegrass/devbox_demo.git && cd devbox_demo
  2. Run devbox shell
  3. Start services1
    • devbox services up (terminal user interface)
    • devbox services start (daemon)
  4. Navigate to localhost:5000 in your browser
  5. Stop services with either devbox services stop or F10 in the TUI
  6. Deactivate the shell with exit

Development

# 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 export

TODO

  • Fix Tailwind CSS styling
  • Add a database
  • Add taskfile
  • Add CI/CD using devbox

Further Reading

Footnotes

  1. devbox shell does not natively read the .env file the same way as docker compose. Use devbox shell --env-file .env to pass the .env file to the shell.

About

Devbox demo for OKC Webdevs 6-18-2024

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published