Skip to content

nanobox-quickstarts/nanobox-react

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

React from Scratch

React from Scratch

Run an React app locally, install nothing besides nanobox.

Clone the repo

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

# cd into the react app
cd nanobox-react

Run the app

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

# Add environment variable to set the dev host to 0.0.0.0
nanobox evar add local HOST=0.0.0.0

# Run react as you would normally, with 'nanobox run'
nanobox run yarn start

Check it out

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

# yarn is installed,
yarn --version

# and your code is mounted
ls

Now What?

For more details about running react apps with nanobox visit guides.nanobox.io/javascript/react/