Skip to main content

Examples

This section contains real-world examples demonstrating how to use systemg for various use cases. Each example showcases different features and capabilities of systemg.

Hello World

A simple introduction to systemg showing the basics of service management.

Features demonstrated:

  • Basic service configuration with the command directive
  • Environment variable management using both file and vars
  • Restart policies with restart_policy, retries, and backoff settings
  • Running a simple shell script as a managed service

View Hello World Example →

CRUD Application

A realistic example of a Node.js CRUD web application with database backups and testing.

Features demonstrated:

  • Managing a web server as a service
  • Scheduling periodic tasks using cron syntax
  • Database backup automation
  • Rolling deployments with rolling_start
  • Webhook notifications for deployment events (success/failure)
  • Environment variable management for sensitive configuration

View CRUD Example →