RailsForge simplifies Rails development with automated generators for services, queries, jobs, and more. It includes essential monitoring, DevOps setups, and security/performance analyzers to streamline common tasks and ensure robust, efficient applications. Embrace enhanced productivity and code quality in your Rails projects.
RailsForge is an essential command-line toolkit designed for automating the generation of critical components in Rails applications. This powerful tool enhances development workflow by providing a set of generators and analyzers that simplify common tasks, ensuring applications are reliable and efficient.
Key Features
- Automated Generators: Quickly generate services, queries, and jobs with a single command, saving time and reducing repetitive coding tasks.
- Code Analyzers: Improve code quality with built-in security, performance, and architectural analysis tools to identify potential vulnerabilities and optimization opportunities.
- DevOps Ready: Streamline deployment processes with out-of-the-box Docker containerization and CI/CD pipeline configurations.
- Comprehensive Monitoring: Integrate essential tools like Sentry for error tracking and Lograge for structured logging to enhance application monitoring.
- Customizable Templates: Utilize a flexible template system that supports multiple versions (v1, v2, v3), allowing developers to choose the best approach for their applications.
- Extensible Plugin System: Tailor the functionality of RailsForge by using plugins for additional features and integrations.
- Configuration Management: Customize settings via a
.railsforgercYAML file to align RailsForge with specific project requirements.
Usage Examples
Monitoring Configuration
To add Sentry error tracking and Lograge structured logging:
railsforge generate monitoring
railsforge generate monitoring --sentry_dsn=your_dsn_here
This will create initializers for Sentry and Lograge within your Rails application.
DevOps Configuration
To generate the Docker and CI/CD pipeline configuration:
railsforge generate devops
This command generates the necessary Dockerfile, and CI/CD configurations for both GitHub Actions and GitLab pipelines.
Security Analysis
Run security vulnerability checks with:
railsforge analyze security
This command performs checks for SQL injections, XSS risks, and other security issues.
Performance Analysis
Identify performance optimization options by executing:
railsforge analyze performance
This analysis helps uncover N+1 query issues, missing indexes, and overall inefficiencies in your code.
Configuration Options
Customize your RailsForge behavior with the .railsforgerc configuration file:
# .railsforgerc
default_template: v2
analyzer_threshold: 10
RailsForge is an indispensable tool for Rails developers looking to optimize their workflows, improve code quality, and ensure robust application performance.
No comments yet.
Sign in to be the first to comment.