Start it
Lesson 2 of 3 in Run TextStack locally. About 15 minutes, mostly waiting.
In this lesson you start the backend, create its database and start the web app.
Steps
-
Start the backend. The first run builds five images and downloads about 3 GB.
Terminal window make upYou should see:
Container textstack_api_prod Healthynear the end. -
Create the V2 database.
make updoes not do this.Terminal window make migrate-v2You should see: a list of
up: …lines, thenDone. -
Check the backend. Wait 30 seconds, then:
Terminal window curl http://localhost:8080/health/readyYou should see:
"status":"ready"and"v2":{"status":"ok"}. -
Start the web app.
Terminal window pnpm installpnpm -C apps/web devYou should see:
Local: http://localhost:5173/. Keep this terminal open.
If something goes wrong
make upfails withport is already allocated. Another program uses port 8080 or 81. Stop that program, then runmake upagain.- Step 3 shows
"v2":{"status":"unreachable"}. The V2 database does not exist yet, or the backend has not looked again. It looks every 30 seconds. Runmake migrate-v2, wait 30 seconds, check again.
Check yourself
-
make upended with the API containerHealthy. - The check in step 3 shows
"status":"ready"and"v2":{"status":"ok"}. - The web app says
Local: http://localhost:5173/.