mirror of
https://github.com/SrIzan10/starters.git
synced 2026-05-01 11:05:16 +00:00
16 lines
564 B
Markdown
16 lines
564 B
Markdown
# HTTP Module Example
|
|
|
|
This example starts an [HTTP Module](https://nodejs.org/api/http.html) server.
|
|
|
|
[](https://railway.app/new?template=https%3A%2F%2Fgithub.com%2Frailwayapp%2Fexamples%2Ftree%2Fmaster%2Fexamples%2Fhttp-nodejs)
|
|
|
|
## 💁♀️ How to use
|
|
|
|
- Install dependencies `yarn`
|
|
- Connect to your Railway project `railway init`
|
|
- Start the development server `railway run yarn dev`
|
|
|
|
## 📝 Notes
|
|
|
|
The server started simply returns a `Hello World` payload. The server code is located in `server.mjs`.
|