This is the hapi Getting Started tutorial on Render.
The app in this repo is deployed at https://hapijs.onrender.com.
-
Create a new Render project using your version of this repo.
-
Create a new web service in the project with the following values:
- Build Command:
npm install
- Start Command:
node server.js
- Build Command:
That's it! Your web service will be live on your Render URL as soon as the build finishes.
By default, Render uses the latest LTS version of Node.
It can also automatically detects and install the version of Node specified in the engines directive in package.json
. This can be an exact version like 10.11.0
or a range like >=10.11 <10.12
.
This is the relevant snippet from package.json
in this repo:
"engines": {
"node": ">=10 <11"
}