WendyOS Docs
TutorialsTypeScript

Build a web server

Deploy a TypeScript HTTP server to a Wendy target and verify its response.

You need the Wendy CLI, a running container builder, and a Linux/WendyOS target or simulator. The quickstart covers those prerequisites. Node.js is only needed locally if you also want to run the app outside Wendy.

1. Create it

wendy init simple-server --target wendyos --language node --template simple-api --var APP_ID=simple-server --var PORT=3000 --assistant skip --git-init no
cd simple-server

2. Run it

wendy run

Select your target. Wendy builds the image, deploys it, and streams logs. After readiness succeeds, expect a line like this, with your target's address:

App reachable at http://192.168.123.222:3000

A simulator using default networking prints http://127.0.0.1:3000 instead.

3. Open it

Open the printed URL in your browser. You should see:

{"message":"hello-world"}

Your web service is running on the target. Edit src/index.ts to change the response, then use wendy run --watch to redeploy as you edit.

Understand what Wendy generated, including the Dockerfile and wendy.json, or use troubleshooting if you did not get a response.

On this page