Add a backend resource
Add your first backend service to the project and see Flisk pick it up.
You build: An api service in services/pre-alpha/api, counted in flisk status.
- The project from Lab 02
-
01Add a backend called api
A resource is one service. Flisk writes its service.json for you, so you never hand-write container files.
flisk resource api --type backend --stack pre-alpha --path services/pre-alpha/api --yesYou pass when: Flisk says the api resource was created, and services/pre-alpha/api holds a service.json.
-
02Check that Flisk sees it
flisk statusYou pass when: Stacks shows pre-alpha: 1 resource. Services stay stopped until you run flisk up pre-alpha.
The check runs on the computer, not on your word: a step passes when its command exits with 0 there.
Computers are not set up on this site yet. Run each command on your own machine and compare with "You pass when".
Commands run in labs/03-backend and may take up to 60 seconds each. Every command starts a new shell: put keys and settings in a .env file there, it is loaded each time.