mirror of
https://github.com/SrIzan10/starters.git
synced 2026-05-01 11:05:16 +00:00
25 lines
674 B
Markdown
25 lines
674 B
Markdown
---
|
|
title: Node HTTP Module
|
|
description: A HTTP module server
|
|
tags:
|
|
- http
|
|
- nodejs
|
|
- javascript
|
|
---
|
|
|
|
# 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 link`
|
|
- Start the development server `railway run yarn start`
|
|
|
|
## 📝 Notes
|
|
|
|
The server started simply returns a `Hello World` payload. The server code is located in `server.mjs`.
|