Tutorial
Tutorial: building Newthub
Build a team app with newt, one step at a time.
In this tutorial you build Newthub, a small app for teams: tasks, projects, documents and chat. Each step adds one part of newt to a backend that runs from the first step.
The steps
Section titled “The steps”- Project and first context: create Newthub and its
taskscontext. - Use cases and entities: what a task is and what you can do with it.
- Database with SQLite: tables, migrations, filters and pages.
- HTTP and routes: call the use cases from outside.
- Projects: a second module, which tasks belong to.
- Events between modules: react when a task is completed.
- Chat: a second context, with its own database.
- Documents: upload and serve files.
- Scheduled tasks: send reminders every morning.
- Testing: test use cases, routes and events.
- Deploying: run Newthub in production.
What you need
Section titled “What you need”- Bun 1.4.0 or newer. See installation.
- TypeScript basics, and what an HTTP request and a SQL table are.
You do not need to know any architecture pattern. Each step explains the words it uses.