A simple mini blog for demonstration purpose. Based on Laravel 8.
Clone the repository-
clone https://github.com/YoussefHarizi/blog-app.git blog-app
Then cd into the folder with this command-
cd blog-app
Then if you use docker run :
docker run --rm \
-u "$(id -u):$(id -g)" \
-v $(pwd):/opt \
-w /opt \
laravelsail/php80-composer:latest \
composer install --ignore-platform-reqs
Create a environment file using this command-
cp .env.example .env
change this lines in .env file :
DB_CONNECTION=mysql
DB_HOST=mysql
DB_PORT=3306
DB_DATABASE=blog-app
DB_USERNAME=sail
DB_PASSWORD=password
Then run application with :
./vendor/bin/sail up -d
Then do a composer install
./vendor/bin/sail composer install
Then do a database migration using this command-
./vendor/bin/sail artisan migrate
generate application key, which will be used for password hashing, session and cookie encryption etc.
./vendor/bin/sail artisan key:generate
Run
./vendor/bin/sail npm install
./vendor/bin/sail npm run dev
to install all front end dependencies
Run npm run watch
to build vue