benjamincrozat / benjamincrozat.com
- четверг, 10 августа 2023 г. в 00:00:05
Source code for Benjamin Crozat's blog built using the TALL stack and getting more than 20K monthly visitors.
This is the source code of my blog, benjamincrozat.com. This blog was built with the TALL stack and gets more than 20K visitors per month.
My Pirsch Analytics dashboard that is publicly accessible.
My Google Search Console. You can see the growth since I launched in September 2022.
I feel obligated to mention that my relative success is not correlated to my tech stack. I just want to own my piece of real estate online and do whatever I want with it. If you also want to create your blog, I don't recommend to copy and paste anything I did. While the code works for my specific needs, it might not be the ideal solution for everyone. But if you're curious, there you go, enjoy!
This is a small project. It certainly won't teach you how to maintain apps at huge scales. That being said, you can learn about:
This project requires Laravel Nova, which is a paid package. For now, I don't know how to make it optional, but meanwhile, you can switch to the feature/filament branch.
The instructions below have been written assuming that you are using Laravel Valet. But you can run the project in whichever environment you want (Herd, Docker with Laravel Sail, Laragon, etc.).
Clone the repository and cd into it:
git clone git@github.com:benjamincrozat/benjamincrozat.com.git
cd benjamincrozat.comCreate a .env file and generate the app key:
cp .env.example .env
php artisan key:generateInstall the dependencies (if you don't have a Laravel Nova license, switch to the feature/filament branch):
composer installCreate the database:
mysql -u root -e "CREATE DATABASE benjamincrozat"Migrate the database with some fake data:
php artisan migrate --seedInstall the frontend dependencies and build the assets:
yarn && yarn buildTo run the tests, execute the following command:
php artisan testOnce the tests are green in the CI environment, a webhook from Laravel Forge is called, which triggers the deployment.
Some details about the production environment: