This example starts an ExpressJS server written in TypeScript.
- Express
- TypeScript
- Install dependencies
yarn
- Connect to your Railway project
railway link
- Start the development server
railway run yarn dev
The server started simply returns a healthcheck status: "ok"
payload in JSON. The server code is located in src/index.ts
.
A versioned API route is available in src/api.ts
and example function hello
at /api/v1/hello
.
/html?url=https://baoyu.io/blog/prompt-engineering/tutor-me-prompt
- Faraz Patankar / Railway team for the original template