If you'd like to check this out locally, then follow the instructions below.
First clone the repository, of course:
git clone git@github.com:sustained/laravel-forum.git
cd laravel-forum
Next you'll want to make a copy the example environment file:
cp .env.example .env
Now edit the .env
file and configure the database.
If you're using Postgres with (IDENT authentication), like me, then all you'll need is this:
DB_CONNECTION=pgsql
DB_DATABASE=laravel_forum
Of course, you'll need to create the database as well as grant privileges:
[padda@aurora ~]$ psql postgres
postgres=> CREATE DATABASE laravel_forum;
CREATE DATABASE
postgres=> GRANT ALL PRIVILEGES ON DATABASE laravel_forum TO padda;
GRANT
If you don't have Postgres setup or are having issues, or you'd simply rather use SQlite then use this configuration instead:
DB_CONNECTION=sqlite
DB_DATABASE=/absolute/path/to/project/database/database.sqlite
And then create the database, again:
touch database/database.sqlite
Now you can run the migrations:
php artisan migrate
Now you should be good to go - just run the development server:
php artisan serve --host=forum.localhost
This is me following along with the (paid) Laracasts series Let's Build a Forum with Laravel and TDD.
Consider it a part of my résumé.
I've been learning PHP and Laravel lately (as well as relearning PostgreSQL, Redis, Vue etc.) and I think I finally feel confident enough to tackle a real project.
Also, I'd like to learn more about Test Driven Development (don't have much experience with testing) so this series seemed perfect.
Instead of me just blindly copying the code each episode, instead I'll be trying to change things as much as possible to align with my own preferences.
For instance, I think I'll use this as an opportunity to learn Vuetify (whereas the tutorial I believe uses Bootstrap).
I'll probably try to implement my own ideas and add my own features too, in time.