Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

octoinit-demo

A small Node.js web app used as the target repo for the OctoInit hackathon demo (Linear: PGG-1814).

The page is Octopus-themed: an HTML view that shows a random octopus / deployment fact and a "Deploy another tentacle" button that fetches a new one. The repo is intentionally small so that running /octoinit against it produces an unambiguous "Stack detected: Node.js".

Endpoints

  • GET / — HTML page with the random-fact UI.
  • GET /api/fact — returns { "fact": "..." } chosen at random.
  • GET /api/info — returns { message, version, environment } as JSON. version reads APP_VERSION and environment reads OCTOPUS_ENVIRONMENT (defaults: 1.0.0, local).
  • GET /health — returns { "status": "ok" }.

Run locally

npm install
npm start
# → Demo app running on port 3000
open http://localhost:3000/

CI

.github/workflows/ci.yml runs npm ci and npm run build --if-present on every push to main and on pull requests. There's no build script today, so the build step is a no-op until one is added.

Deploy to Azure

Terraform under infrastructure/ provisions an Azure resource group, an App Service Plan, and a Linux Web App (Node 20). The deploy is a single az webapp deploy --type zip step — no container registry, no image build. See infrastructure/README.md.

Files

  • app.js — Express server + inline HTML page
  • package.json — manifest, single dep on express
  • .github/workflows/ci.yml — CI build
  • infrastructure/ — Terraform for hosting on Azure App Service

About

Hackathon Ctrl-C's OctoInit Demo

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages