Skip to content

nanobox-quickstarts/nanobox-nette

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Nette from Scratch

Nette from scratch

Run a Nette app locally, install nothing besides nanobox.

Clone the repo

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

# cd into the nette app
cd nanobox-nette

Run the app

# Optinally enable nette debug mode
nanobox evar add local NETTE_DEVEL=1

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

# Run nette using nette-php-server, with Nanobox
nanobox run php -S 0.0.0.0:8000 -t www

Check it out

Visit your app at nette.dev:8000

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 nette is installed,
php -v

# your packages are available,
composer show

# and your code is mounted
ls

Now What?

For more details about running nette apps with nanobox visit guides.nanobox.io/php/nette/