Skip to content

open-service-portal/service-nodejs-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

6 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Node.js Service Template

A Backstage template for creating Node.js microservices.

Features

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

Using this Template

This template is automatically discovered by Backstage through GitHub integration.

Prerequisites

  • Backstage instance with GitHub integration
  • GitHub App configured for repository creation

Parameters

  • 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)

Development

To test changes to this template locally:

  1. 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]
  1. Navigate to /create in your Backstage instance
  2. The template should appear in the template list

Template Structure

.
β”œβ”€β”€ 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

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

About

πŸš€ Backstage template for scaffolding Node.js microservices with TypeScript, testing, and CI/CD

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •