nanobox-quickstarts / nanobox-express

Quickstart for Express on Nanobox

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Express from scratch

Express from scratch

Run an Express app locally, install nothing besides nanobox.

Clone the repo

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

# cd into the express app
cd nanobox-express

Run the app

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

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

Check it out

Visit your app at express.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 express.dev

Now What?

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

About

Quickstart for Express on Nanobox

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

License:Mozilla Public License 2.0


Languages

Language:JavaScript 71.8%Language:Nginx 20.1%Language:HTML 5.8%Language:CSS 2.3%