Skip to content

Te-Stack/Railway-Express-Tutorial

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Railway Express Tutorial

A minimal Express.js API that you can deploy to Railway in a few clicks.

Prerequisites

  • Node.js 18+ and npm installed locally
  • Railway account

Run locally

npm install
npm run dev

Visit http://localhost:8080.

Deploy to Railway

  1. Create a new Railway project and select Deploy from GitHub or Deploy from code.
  2. Push this repository to GitHub (or connect your local folder via Railway CLI).
  3. When Railway asks for the build command, use npm install.
  4. Set the start command to npm start.
  5. Railway will automatically supply PORT, so no extra environment variables are required.

Once deployment finishes, your app will respond at the generated Railway domain.

API

  • GET / – Welcome message with doc link
  • GET /health – Simple health probe
  • POST /echo – Returns the JSON payload you send

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published