/hapi-quick-start

hapi quickstart for Render

Primary LanguageJavaScriptMIT LicenseMIT

README

This is the hapi Getting Started tutorial on Render.

The app in this repo is deployed at https://hapijs.onrender.com.

Deployment

  1. Create a new Render project using your version of this repo.

  2. Create a new web service in the project with the following values:

    • Build Command: npm install
    • Start Command: node server.js

That's it! Your web service will be live on your Render URL as soon as the build finishes.

Node versions

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"
  }