create-skip-service
v1.2.1
Published
CLI tool to create and initialize Skip services with customizable templates
Readme
create-skip-service
A CLI tool to bootstrap Skip services with various templates. It provides a quick way to start new Skip projects with pre-configured templates for different use cases.
Current status
Usage
To create a new Skip service, run:
npx create-skip-service <project-name> [options]Options
-t, --template <name>- Use a specific template (default, with_postgres, with_react_vite)-e, --example <name>- Use an example from the Skip repository--no-git-init- Skip git repository initialization-f, --force- Overwrite existing directory-v, --verbose- Show detailed output-q, --quiet- Suppress non-error output
Available Templates
Templates can be found here.
default
A basic reactive Skip service template that includes:
- Core Skip service structure
- TypeScript configuration
- Development tools setup
with_postgres
A template that includes:
- PostgreSQL database integration
- Database models and schema
- TypeScript configuration
- Development tools setup
with_react_vite
A full-stack chat application template that includes:
- React frontend with Vite
- Skip reactive service backend
- Real-time chat functionality
- TypeScript configuration throughout
Development
To work on this tool locally:
- Clone the repository
- Install dependencies:
pnpm install - Build the project:
pnpm build - Run in development mode:
pnpm dev
Scripts
pnpm build- Build the projectpnpm start- Run the CLIpnpm dev- Run in development mode with watchpnpm clean- Clean build artifactspnpm format- Format code with Prettierpnpm test- Run tests in watch modepnpm test:run- Run tests oncepnpm test:ui- Run tests with UIpnpm test:coverage- Run tests with coverage reportpnpm typecheck- Type checking without emitting
Testing the CLI locally
node dist/cli.js <project-name> [options]Available Examples
You can also bootstrap your project using examples from the Skip repository by using the --example flag:
npx create-skip-service my-project --example <example-name>blogger
A full-stack blogging platform demonstrating:
- Skip reactive service with leader-follower distributed configuration
- Flask web service for REST API
- Vue.js frontend
- PostgreSQL database
- HAProxy reverse proxy
- Docker Compose and distributed deployment options
chatroom
A real-time chat application featuring:
- Skip reactive service with Kafka event store
- Express.js web service
- React frontend with real-time messaging
- Docker Compose configuration
- Event-driven architecture demonstration
hackernews
A HackerNews clone showcasing:
- Skip reactive service with distributed leader-follower setup
- Flask web service with read/write separation
- React frontend with real-time updates
- PostgreSQL database
- HAProxy load balancing
- Both Docker Compose and Kubernetes deployment options
- Comprehensive real-time voting and posting system
Support
Join the Discord to talk to other community members and developers or ask any questions.
