Skip to content

Run TextStack locally

You get: TextStack running on your machine, with a book open on the reading screen.

Time: about 20 minutes. Most of it is the first build.

Before you start

  • Docker is running.
  • You have git, make, Node.js (the version in .nvmrc) and pnpm.
  • Ports 8080, 81 and 5173 are free.

How it is set up

Two parts run in two places.

  • The backend runs in Docker. It keeps the books and answers the app.
  • The web app runs on your machine. When you change it, you see the change at once.

The three lessons

  1. Get the code: clone, settings, data folders.
  2. Start it: the backend, the database, the web app.
  3. Open a book: add a book and read its first page.

Each lesson ends with a short list to tick. The site remembers your ticks in this browser.

Where things are, once it runs

To stop the backend, run make down. Your data stays in ./data.

Database changes: database/README.md. All settings: environment variables.

Next

Lesson 1: Get the code.