first service · beginner · 10 min

Add a backend resource

Add your first backend service to the project and see Flisk pick it up.

HANDS-ON LAB · YOU RUN IT ON YOUR MACHINE · 2 STEPS
  1. Step 1 of 2

    Add a backend called api

    A resource is one service. Flisk writes its service.json for you, so you never hand-write container files.

    Run this to check

    flisk resource api --type backend --stack pre-alpha --path services/pre-alpha/api --yes

    You pass when

    Flisk says the api resource was created, and services/pre-alpha/api holds a service.json.

  2. Step 2 of 2

    Check that Flisk sees it

    Run this to check

    flisk status

    You pass when

    Stacks shows pre-alpha: 1 resource. Services stay stopped until you run flisk up pre-alpha.

No transcript here on purpose. This page does not show terminal output, because model answers differ from run to run. Each step says what a pass looks like; your own terminal is the proof.