A starter template for scdev that creates an Express.js project with a working local development environment.
- Node.js 22 (Alpine) container
- Express.js hello world app
- HTTPS via scdev's shared Traefik router
- Mutagen file sync (macOS) with node_modules kept inside the container
scdev create express my-app
cd my-app
scdev setupAfter setup completes, your app is running at https://my-app.scalecommerce.site.
- Starts the Docker container (
scdev start) - Enables pnpm via corepack
- Installs dependencies (
pnpm install) - Marks setup as complete - the app starts automatically
All commands can be seen in .scdev/commands/setup.just.
my-app/
.scdev/
config.yaml # scdev project configuration
commands/
setup.just # Setup script (installs dependencies)
app.js # Express hello world
package.json # Dependencies
.gitignore
The app runs with Node.js --watch mode - edit app.js and changes are picked up automatically, no restart needed.
To add packages:
scdev exec app pnpm add <package>- scdev installed
- Docker Desktop running
Want to create your own template? See the Template Authoring Guide.