Skip to content

mu-box/quickstart-express

This branch is up to date with nanobox-quickstarts/nanobox-express:master.

Folders and files

NameName
Last commit message
Last commit date
Nov 16, 2016
Nov 16, 2016
Sep 20, 2016
Sep 20, 2016
Oct 4, 2017
Sep 20, 2016
Sep 20, 2016
Oct 9, 2017
Oct 4, 2017
Nov 18, 2016
Nov 16, 2016
Oct 6, 2017
Oct 4, 2017

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/