nanobox-quickstarts / nanobox-hapi

Quickstart for Hapi with Nanobox

Home Page:http://guides.nanobox.io/nodejs/hapi/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

hapi from scratch

hapi from scratch

Run an hapi app locally, install nothing besides nanobox.

Clone the repo

# clone the code
git clone https://github.com/nanobox-quickstarts/nanobox-hapi.git

# cd into the hapi app
cd nanobox-hapi

Run the app

# Add a convenient way to access your app from the browser
nanobox dns add local hapi.dev

# Run hapi as you would normally, with Nanobox
nanobox run npm start

Check it out

Visit your app at hapi.dev:3000

Explore

With Nanobox, you don't have to have anything installed on your machine to run your app:

# drop into a Nanobox console
nanobox run

# where node is installed,
node -v

# your packages are available,
npm list

# and your code is mounted
ls

Clean things up (optional)

If you want to keep this project ignore this. If not, clean things up by removing the DNS entry:

nanobox dns rm local hapi.dev

Now What?

For more details about running hapi apps with nanobox visit guides.nanobox.io/nodejs/hapi/

About

Quickstart for Hapi with Nanobox

http://guides.nanobox.io/nodejs/hapi/

License:Mozilla Public License 2.0


Languages

Language:JavaScript 67.3%Language:Nginx 23.2%Language:HTML 6.7%Language:CSS 2.7%