Skip to content

kubesphere-sigs/demo-javascript

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Javascript and NodeJS example project for ks-devops

A minimal HTTP server built with Node.js. It responds with Hello, World! on the root path and listens on port 8080 (configurable via the PORT environment variable).

Run locally

npm ci --offline
npm start

Test

npm test

Build and run with Docker

docker build -t demo-javascript .
docker run -p 8080:8080 demo-javascript

The container runs as an unprivileged user (65532:65532).

Air-gapped demo

This repository ships with a local npm cache (.npm) and an .npmrc that points npm to it. In an offline environment you can run the standard workflow without network access:

npm ci --offline
npm test
npm start

The .npmrc file sets cache=.npm and prefer-offline=true, so npm ci will use the local cache by default.

About

No description or website provided.

Topics

Resources

License

Stars

2 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors