Pre-setted minimal Nette Framework project
This package is not auto-updated.
Last update: 2021-06-11 23:18:08 UTC
Sandbox is a pre-packaged and pre-configured Nette Framework application that you can use as the skeleton for your new applications. This is fork of Nette srigi-sandbox which is optionated fork of original nette-sandbox.
To get better starting point for my Nette Framework projects, I modified original sandbox to fit my style. Most notable differences are:
I use separate installation of Adminer as local virtualhost.
cleanup of uneeded files (
Does anybody care about IIS webserver? Printing webpages?
App\Modelnamespaces (everything is in
Since there is a subword
App\SomePresenter, I don't see any sense to have namespace for presenters. My
UserPresenterwill not definitely have name collision with my
UserFormsince there is that subword
Formin the name of my classes.
Default entry point in sandbox should have more general name.
more configuration directives by default
Example of configuring of presenters.
lots of code cleanup
Removed obvious comments from code, better
use(namespace) conventions in code, moved CSS styles to
layout system using
Using Nette's template-inheritance we can define layout for each presenter. There is nice example -
DefaultPresenteruse 2-columns layout,
SignPresenteruse 1-colum layout.
rewrite of signup form template to use fully manual rendering
also moved this template to more suitable place
SASSstylesheets, two main processes - developement (with livereload) & build.
Flunorette database layer.
composer create-project srigi/nette-sandbox myapp cd myapp
log writable. Navigate your browser
www directory and you will see a welcome page. PHP 5.4 allows
php -S localhost:8888 -t www to start the web server and
http://localhost:8888 in your browser.
It is CRITICAL that whole
temp directories are NOT accessible
directly via a web browser! See security warning.
hexicz-sandbox use gulpjs as a minimal dev-stack to support you during development. To fully embrace advantages of dev-stack you must install needed tools & packages. Nodejs is main requirement. See installation instruction on how to install nodejs on your machine.
Then install dev-stack:
npm install -g gulp bower npm install (in root of your project) bower install
Now you can use livereload for automatic refresh of your browser when you change files of your project.
.js files will be automatically linted, you can see code-style errors on the console.
This command will optimize frontend parts of your project & create
build directory with builded project.