create-stack-craft
v1.1.6
Published
A CLI tool to create projects with Express, Hono, and Prisma
Maintainers
Readme
Create Stack Craft
Create Stack Craft is a CLI tool to create projects with Express, Hono, and Prisma. This tool helps you quickly set up a new project with the desired framework, language, and Prisma integration.
Features
- Create projects with Express or Hono.
- Choose between TypeScript or JavaScript.
- Optionally include Prisma for database management.
- Automatically set up the project structure and dependencies.
Usage
You can create a new project by running the following command with npm:
npm create stack-craft@latestOr with pnpm:
pnpm create stack-craft@latestInteractive Prompts
You will be prompted to enter the following information:
- Project Name: Enter the name of your project.
- Framework: Choose between Express or Hono.
- Language: Choose between TypeScript or JavaScript.
- Include Prisma: Optionally include Prisma in your project.
- Run npm install: Optionally run
npm installafter setting up the project.
Example
npm create stack-craft@latestor
pnpm create stack-craft@latestFollow the prompts to create your project. Once the setup is complete, navigate to your project directory and start the development server:
cd my-project
npm run devProject Structure
The generated project structure will look like this:
my-project/
├── prisma/
│ └── schema.prisma (if Prisma is included)
├── src/
│ ├── app.ts (or app.js)
│ └── routes/
│ └── index.ts (or index.js)
├── .env (if Prisma is included)
├── .env.example (if Prisma is included)
├── package.json
└── tsconfig.json (if TypeScript is selected)Template Files
The template files for different setups can be found in the Stack Craft Templates repository.
Scripts
The generated package.json will include the following scripts:
build: Compile the TypeScript code (if TypeScript is selected).start: Run the compiled code.lint: Run ESLint on the project.db:generate: Generate Prisma client (if Prisma is included).db:migrate: Run Prisma migrations (if Prisma is included).db:push: Push the Prisma schema to the database (if Prisma is included).db:studio: Open Prisma Studio (if Prisma is included).
Available Templates
Frameworks
Additional Tools
Contributing
Contributions are welcome! Please open an issue or submit a pull request for any bugs or feature requests.
License
This project is licensed under the MIT License.
