Nutella project is an example project based on Nette Framework and many useful packages by @f3l1x.
Why nutella? Because it's all mixed into 1 awesome piece.
Main goal is to provide best prepared starter-kit project for Nette developers.
Focused on:
nette/*packages- Doctrine ORM via
nettrine/* - Symfony components via
contributte/* - codestyle checking via CodeSniffer and
ninjify/* - static analysing via phpstan
- unit / integration tests via Nette Tester and
ninjify/*
https://examples.planette.io/planette/nutella-project/
-
At first, use composer to install this project.
composer create-project planette/nutella-project -
After that, you have to setup Postgres >= 10 database. You can start it manually or use docker image
postgres:10.docker run -it -p 5432:5432 -e POSTGRES_PASSWORD=nutella -e POSTGRES_USER=nutella postgres:10Or use make task,
make loc-postgres. -
Custom configuration file is located at
app/config/config.local.neon. Edit it if you want.Default configuration should look like:
# Host Config parameters: # Database database: host: localhost dbname: nutella user: nutella password: nutella
-
Ok database is now running and application is configured to connect to it. Let's create initial data.
Run
NETTE_DEBUG=1 bin/console migrations:migrateto create tables. RunNETTE_DEBUG=1 bin/console doctrine:fixtures:load --appendto create first user(s).Or via task
make app-init. -
Start your devstack or use PHP local development server.
You can start PHP server by running
php -S localhost:8000 -t wwwor use prepared make taskmake loc-web. -
Open http://localhost and enjoy!
Take a look at:
Here is a list of all features you can find in this project.
- 📦 Packages
- Nette 2.4
- Contributte
- Nettrine
- 🌳 Structure
appconfig- configuration filesenv- prod/dev/test environmentsapp- application configsext- extensions configsconfig.local.neon- local runtime configconfig.local.neon.dist- template for local config
domain- business logic and domain specific classesmodel- application backbonemodules- Front/Admin module, presenters and componentsresources- static content for mails and othersui- UI components and base classesbootstrap.php- Nette entrypoint
bin- console entrypoint (bin/console)db- database filesfixtures- PHP fixturesmigrations- migrations files
docs- documentationlog- runtime and error logstemp- temp files and cachetests- test engine and unit/integration testsvendor- composer's folderwww- public content
- ❗ Tracy
- Cool error 500 page
Take a detailed look 👀 at each single package.
- contributte/bootstrap
- contributte/application
- contributte/di
- contributte/cache
- contributte/http
- contributte/forms
- contributte/latte
- contributte/mail
- contributte/security
- contributte/utils
- contributte/tracy
- contributte/console
- contributte/event-dispatcher
- contributte/event-dispatcher-extra
- contributte/neonizer
- contributte/mailing
- contributte/monolog
Nettrine
Nette
[email protected] / admin



