Skip to content

nanobox-quickstarts/nanobox-express

Repository files navigation

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/