This repo provides an example use case of devspace, for the purposes of a talk.
It is currently tested on Linux Mint, but should likely be simple to port to other operating systems.
- Install Docker (version tested:
Docker version 20.10.2, build 2291f61) - Install minikube
1.16.0+ - Install kubectl
1.20.2+ - Install devspace
5.7.3+- Requires Node.js
Once the prerequisites are installed, run the following commands:
# Necessary environment setup, including database migrations
make setup
# Run the application
make runThen in another shell, we can test the API:
# See an empty response
make get-names
# Create the first name
NAME=my-first-name make post-name
# Check to see if that name was created
make get-names- Uncomment the code in related to
createdandupdatedin backend/app/init.py and backend/app/models.py - Auto-generate a migration:
MESSAGE="add created and updated" make generate-migration - Inspect the auto-generated files within backend/migrations/versions, and edit them however you see fit.
- Run the migrations
Check out the devspace ui:
devspace ui