Run the following command to create a new plainweb starter project:
npx create-plainweb
You need Node and pnpm installed. plainweb uses Node 20.10.0 or higher and pnpm 9.5.0 or higher.
node --version
> v20.10.0
pnpm --version
> 9.5.0
Start the development server at http://localhost:3000
.
pnpm run dev
These are the most important commands for development:
pnpm run dev
runs the development server in watch modepnpm run test
runs tests with the built-in Node test runner (Node 22 is recommended)pnpm run db:gen
generates the migration filespnpm run db:apply
applies the migrationspnpm run build
type checks your app and minifies the CSSpnpm run routes
prints all express routes to the consolepnpm run check
runs the linter, formatter and scans .tsx files for cross-site scriptingFollowing extensions are recommended when using VSCode:
Head over to Directory Structure to dig into the starter project.