Files
2021-10-20 11:56:24 -07:00

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.
[![Deploy on Railway](https://railway.app/button.svg)](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`.