A Backstage template for creating Node.js microservices.
This template creates a new Node.js service with:
- Basic Express.js setup
- Package.json with common dependencies
- Backstage catalog-info.yaml for service registration
- Ready-to-deploy structure
This template is automatically discovered by Backstage through GitHub integration.
- Backstage instance with GitHub integration
- GitHub App configured for repository creation
- Name: The name of your service (will be used in package.json and catalog-info.yaml)
- Repository Location: Where to create the new repository (defaults to open-service-portal organization)
To test changes to this template locally:
- Reference it in your Backstage app-config.yaml:
catalog:
locations:
- type: url
target: https://github.com/open-service-portal/service-nodejs-template/blob/main/template.yaml
rules:
- allow: [Template]
- Navigate to
/create
in your Backstage instance - The template should appear in the template list
.
βββ template.yaml # Template definition
βββ content/ # Files to be scaffolded
β βββ catalog-info.yaml # Backstage catalog info
β βββ package.json # Node.js package definition
β βββ index.js # Main application file
βββ README.md # This file
Contributions are welcome! Please feel free to submit a Pull Request.