Devspace talk

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.

Prerequisites

Running instructions

Once the prerequisites are installed, run the following commands:

# Necessary environment setup, including database migrations
make setup
# Run the application
make run

Then 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

Change the data model, run database migration

  1. Uncomment the code in related to created and updated in backend/app/init.py and backend/app/models.py
  2. Auto-generate a migration: MESSAGE="add created and updated" make generate-migration
  3. Inspect the auto-generated files within backend/migrations/versions, and edit them however you see fit.
  4. Run the migrations

For simpler onboarding

Check out the devspace ui:

devspace ui