Skip to content

Commit f733fc8

Browse files
committed
Add tutorial
1 parent 0357ad2 commit f733fc8

5 files changed

Lines changed: 739 additions & 0 deletions

File tree

README.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# README
2+
3+
This is the [hapi](https://hapijs.com) [Getting Started](https://hapijs.com/tutorials) tutorial on [Render](https://render.com).
4+
5+
The app in this repo is deployed at [https://hapijs.app.render.com](https://hapijs.app.render.com).
6+
7+
## Deployment
8+
1. Create a new Render project using your version of this repo.
9+
10+
2. Create a new web service in the project with the following values:
11+
* Build Command: `npm install`
12+
* Start Command: `node server.js`
13+
14+
That's it! Your web service will be live on your Render URL as soon as the build finishes.
15+
16+
## Node versions
17+
By default, Render uses the latest LTS version of Node.
18+
19+
It can also automatically detects and install the version of Node specified in the [engines](https://docs.npmjs.com/files/package.json#engines) directive in `package.json`. This can be an exact version like `10.11.0` or a range like `>=10.11 <10.12`.
20+
21+
This is the relevant snippet from `package.json` in this repo:
22+
```json
23+
"engines": {
24+
"node": ">=10 <11"
25+
}
26+
```

0 commit comments

Comments
 (0)