Stars: 316
Forks: 65
Pull Requests: 9
Issues: 16
Watchers: 6
Last Updated: 2023-09-16 14:27:10
Source code for Benjamin Crozat's blog built using the TALL stack and getting more than 30,000 monthly visitors.
License: Do What The F*ck You Want To Public License
Languages: PHP, JavaScript, CSS, Blade
This is the source code of my blog, benjamincrozat.com. This blog was built with the TALL stack and gets more than 30,000 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:
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 [email protected]:benjamincrozat/benjamincrozat.com.git
cd benjamincrozat.com
Create a .env
file and generate the app key:
cp .env.example .env
php artisan key:generate
Install the dependencies:
composer install
Create the database:
mysql -u root -e "CREATE DATABASE benjamincrozat"
Migrate the database with some fake data:
php artisan migrate --seed
Install the frontend dependencies and build the assets using Bun (use NPM or Yarn if you prefer):
bun install && bun run build
To run the tests, execute the following command:
php artisan test
Once 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: