Files
archived-starters/examples/http-nodejs/README.md
Aiden Bai e3ad92e558 Add http-nodejs starter (#73)
* Add http-nodejs starter

* Fix name in package.json
2021-04-11 16:52:34 -07:00

16 lines
564 B
Markdown

# 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 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`.