create-servest
v2.1.0-beta.1
Published
The fastest way to generate backend projects for multiple frameworks, with flexible architectures and modern tooling
Maintainers
Readme
create-servest
create-servest is a scaffolding tool for quickly setting up modern backend projects. Inspired by create-vite, it allows you to bootstrap projects with or without addons in a streamlined way.
Features
- Quickly scaffold a backend project
- Optional addons for extended functionality
- Works seamlessly with the
servestpackage to integrate additional features
Installation
Using NPM:
npm create servest@latestUsing Yarn:
yarn create servestUsing PNPM:
pnpm create servestUsing Bun:
bun create servestThen follow the prompts!
Non-interactive scaffolding
You can directly specify the project name and template via CLI options:
# Scaffold an Express MVC TypeScript project non-interactively
npm create servest@latest servest-project -- --template express-mvc-ts
# With addons
npm create servest@latest servest-project -- --template express-mvc-ts -a f-auth f-articles mongoose eslint-prettierTip: Use
.as the project name to scaffold in the current directory:
npm create servest@latest . -- --template express-basic-tsCurrently Supported Frameworks & Variants
Express
basic-js— Basic JavaScriptbasic-ts— Basic TypeScriptmvc-cjs— MVC CommonJSmvc-esm— MVC ESMmvc-ts— MVC TypeScriptmodular-cjs— Modular CommonJSmodular-esm— Modular ESMmodular-ts— Modular TypeScript
Fastify
basic-js— Basic JavaScriptbasic-ts— Basic TypeScriptmvc-cjs— MVC CommonJSmvc-esm— MVC ESMmvc-ts— MVC TypeScriptplugin-cjs— Plugin CommonJSplugin-esm— Plugin ESMplugin-ts— Plugin TypeScript
Django
django-basic— Django Basic
Addons
You can automatically include additional utilities during scaffolding using the -a or --addons flag:
npm create servest@latest -- --template express-mvc-ts -a f-auth mongoose eslint-prettier lint-stagedThis will scaffold the express-mvc-ts project and install the required npm packages to enhance your development workflow.
Note: If any addon fails, the remaining ones will still be applied. You can re-run the failed addons manually later.
To learn more about servest addons, visit the npm package or check the GitHub repository
Options
-t, --template– Select a template (e.g.,express-basic-js,express-mvc-ts)-a, --addons– Space-separated list of addons (optional)-h, --help– Show help message
Community Templates
Servest lets you quickly start a backend project using ready-made templates. You’re not limited to the official templates—other community templates can also be used.
To use a community template from GitHub:
# Copy the template files to a new folder
npx degit user/project my-project
cd my-project
# Install the project dependencies
npm install
# Start the development server
npm run devTip: Some repositories use
maininstead ofmasteras their default branch. In that case, add#mainto the repo name:
npx degit user/project#main my-projectContributing
Contributions are welcome! Please open an issue or submit a pull request if you find bugs or want to add features.
Inspiration
This project was heavily inspired by create-vite for project scaffolding and shadcn for addons, for addons, adopting a similar philosophy for backend scaffolding and utility generation..
License
MIT License
