A sample service for testing build tools, displaying in Backstage, and whatever else you might need it for.
First add some secrets to the .env
file in the root. See the .env.sample
file for suggestions
of required environment variables.
Then run it locally like this:
yarn start
curl :3000/
The sample-service is designed to be deployed on multiple platforms. For example, kubernetes via Helm and AWS Lambda.
Docker images are automatically built and pushed to Docker Hub by a GitHub action when
new code is merged into the master
branch.
The image will be tagged with the version in the package.json
.
The repo name on Docker Hub is roadiehq/sample-service
.
There is a helm chart for deployment to Kubernetes.
Pre-requisites:
- Install the aws cli (For homebrew, use:
brew install awscli
). - Authenticate using an access token and secret with
aws configure
.
yarn run deploy:lambda
To invoke it via the API Gateway trigger,
curl https://6b2w0lh8p3.execute-api.eu-west-1.amazonaws.com/default/sample-service