Get started
Create your first TBX textbook
This guide walks you through creating a TBX textbook and getting it running.
Prerequisites
Configure npm to access @bside-tech/tbx from GitHub Packages:
- Create a personal access token with
read:packagespermission - Add to
~/.npmrc:@bside-tech:registry=https://npm.pkg.github.com //npm.pkg.github.com/:_authToken=YOUR_TOKEN
Create a new textbook
Run:
npx @bside-tech/tbx@latest createFollow the prompts. When the book is created:
- Install dependencies:
npm install - Start the dev server:
npm run dev - Open the Dev bar (bottom right) for quick links to Admin, README, and other resources
Update a textbook
To upgrade your textbook when new TBX versions are released:
npx @bside-tech/tbx@latest updateThis updates dependencies and scaffolding. Run it from your textbook project root.