Read the article
This repository is a demo project that demonstrates an implementation for a simple "Like" system with Laravel out of the box.
- PHP 8.0 (7.4 should work too)
- Composer
- Sqlite extension (
sudo apt install -y php8.0-sqlite3
)
Very easy my friend, just hit bash and copy/paste this:
# clone the project
git clone https://github.com/bdelespierre/laravel-like-demo
# move into the project
cd laravel-like-demo
# install composer dependencies
composer install
# copy the .env
cp .env.example .env
# make a key
php artisan key:generate
# create an empty database
touch database/database.sqlite
# setup the database
php artisan migrate
# start the server (CTRL+C to stop)
php artisan serve
Then hit http://localhost:8000 and you're good to go 👍