create-lafken
v1.0.2
Published
Create a lafken project
Readme
🌊 Lafken 🌊
A modern serverless framework scaffolding tool for cdktf projects.
Installation
npm create lafken@latestOr use directly with npx:
npx create-lafkenUsage
Simply run the command and follow the interactive prompts:
npm create lafkenThe CLI will guide you through:
- Project name: Choose a name for your project
- Directory selection: If your current directory matches the project name, you'll be asked if you want to use it
- Service selection: Choose which AWS services to include in your project
- Dependency installation: Optionally install dependencies with your preferred package manager
Available Services
Lafken supports the following AWS services out of the box:
- API Gateway - RESTful API endpoints
- Authentication - User authentication and authorization
- S3 Bucket - Object storage
- DynamoDB - NoSQL database
- EventBridge - Event bus for event-driven architecture
- SQS Queue - Message queuing service
- EventBridge Schedule - Scheduled task execution
- Step Functions - State machine workflows
Project Structure
After scaffolding, your project will have the following structure:
my-lafken-app/
├── src/
│ └── index.ts
├── package.json
├── tsconfig.json
└── cdktf.jsonThe package.json will include only the services you selected during setup.
Development
Once your project is created:
cd my-lafken-app
npm install # if you didn't install during setup
npm run build
npm run cdktf:synthAvailable Scripts
npm run build- Compile TypeScript to JavaScriptnpm run cdktf:deploy- Build and deploy your infrastructurenpm run cdktf:destroy- Destroy your infrastructurenpm run cdktf:synth- Synthesize terraform templatenpm run clean- Clean build artifacts
Support
For issues and questions, please open an issue on GitHub.
