initgen
Version:
A beautiful, interactive CLI tool to scaffold modern web and backend projects with React, Next.js, Vue, Node.js, Python Flask/Django, shadcn/ui and more. Zero configuration, production-ready projects in seconds with Tailwind CSS v4!
96 lines (70 loc) • 1.75 kB
JavaScript
export function createReadme(projectName, stackName) {
return `# ${projectName}
A ${stackName} project scaffolded with InitGen CLI.
## Getting Started
### Install Dependencies
\`\`\`bash
npm install
\`\`\`
### Development
\`\`\`bash
npm run dev
\`\`\`
### Build
\`\`\`bash
npm run build
\`\`\`
## Project Structure
\`\`\`
${projectName}/
├── src/
│ ├── components/
│ └── ...
├── public/
└── package.json
\`\`\`
## Learn More
- Documentation for ${stackName}
- [InitGen CLI](https://github.com/PankajKumardev/initgen)
---
*Scaffolded by InitGen CLI*
`;
}
export function createPythonReadme(projectName, stackName, isFlask = false) {
const venvCommand = isFlask
? 'python -m venv venv\nsource venv/bin/activate # On Windows: venv\\\\Scripts\\\\activate'
: 'source venv/bin/activate # On Windows: venv\\\\Scripts\\\\activate';
const installCommand = isFlask
? 'pip install -r requirements.txt'
: 'pip install -r requirements.txt';
const runCommand = isFlask ? 'python run.py' : 'python manage.py runserver';
return `# ${projectName}
A ${stackName} project scaffolded with InitGen CLI.
## Getting Started
### Create Virtual Environment
\`\`\`bash
${venvCommand}
\`\`\`
### Install Dependencies
\`\`\`bash
${installCommand}
\`\`\`
### Run Development Server
\`\`\`bash
${runCommand}
\`\`\`
## Project Structure
\`\`\`
${projectName}/
├── app/
│ ├── routes/
│ └── models/
└── requirements.txt
\`\`\`
## Learn More
- Documentation for ${stackName}
- [InitGen CLI](https://github.com/PankajKumardev/initgen)
---
*Scaffolded by InitGen CLI*
`;
}