This project is a ready-to-use starter template using the following technologies:
- Nette + Vite
- React + TypeScript
- Tailwind CSS v4
- MariaDB
It includes a Docker Compose setup designed for local development. You don’t need to install anything manually — just run a few commands and you’re ready to go.
Prerequisites: Docker + Docker Compose
- Start the stack:
docker compose up --build -d
- Install PHP dependencies and Node modules
docker exec nette_react_template_php sh -c "composer install && npm install"
- Launch the Vite dev server (frontend hot‑reload)
docker exec -it nette_react_template_php npm run dev
- hit
q+enterto stop dev server
🎉 Application is running on http://localhost:8000/.
Note: Nette uses the dev server only when debug mode is enabled (no action needed it's default setup)
Compile JS/CSS assets
docker exec nette_react_template_php npm run build
├── app/ # application (presenters, templates, components)
├── assets/ # React, Tailwind CSS, and other styles
├── bin/ # scripts for command line
├── config/ # configuration
├── database/ # database seed script
├── log/ # logged messages and errors
├── temp/ # temporary files, cache
├── tests/ # tests
├── vendor/ # libraries installed by Composer
└── www/ # public document root (index.php, built assets)
Note: docker compose up automatically seeds MariaDB on first run using database/init.sql.
Docs: See the official Nette directory structure documentation for more details.
docker compose down
docker exec nette_react_template_php composer format
docker exec -it nette_react_template_mysql mysql -uroot -proot
or connect via database viewer (disable SSL)
docker volume rm nette-react-template_db_data