Earlier this week, I launched a brand new version of this website. It is written in PHP using Nette and Doctrine, uses Bower and Gulp to build assets, and strives to follow current best practices. And, last but definitely not least, its source code is open.
I use it not only as my website and blog, but also as a development sandbox.
I try to keep up with current trends in web app development, following
state-of-the-art best practices and using bleeding edge PHP, Nette, Doctrine
(incl. migrations), various Kdyby packages, NPM, Bower, Gulp, and
I decided to open-source the whole thing so that it can also be a learning
material for newcomers to Nette. It is licensed under the New BSD license and
you can get the source code at Github or directly by
cloning the repository:
$ git clone https://github.com/jiripudil/jiripudil.cz
The initial setup requires you to create, run and install loads of things.
You need to have Composer and Node.js installed, as well as the following NPM
(if not, install them via
sudo npm install -g <package>). You
also need PHP >= 5.5.
app/config/local.neon file storing credentials to
your database as in the following example:
Last, run these commands to install PHP and front-end dependencies and run
$ composer install
$ npm install
$ gulp bower
$ gulp build
$ php www/index.php migrations:migrate
Also be aware that the website is running on Nginx (see my previous
post to get to know Nginx and the basics of its configuration). That's why
there are no
.htaccesses. You will have to add them (e.g. those
from nette/sandbox) to make it
run on Apache.
You can see the development process in the commit
history, report bugs and issues in the issue tracker, open
pull requests if you feel this website lacks something, you can even try and
hack it. Enjoy!
More on my blog
I've had a really productive couple of weeks and (mostly) weekends recently. I've worked extensively on one of my side projects using modern JS stack including Webpack, faced issues here and there, and found a way to solve them. In the end, I proudly announce three new open-source packages: a modern AJAX library for Nette Framework, Neon loader for Webpack, and a library integrating the Webpack build process into Nette-powered applications.