/laravel_blog

Laravel blog

Primary LanguagePHP

Installation

  1. git clone https://github.com/fixable11/laravel_blog.git ./

  2. make init
    If your opperation system doesn't support make command, you have to write list of commands manually. You can find them in a Makefile.

  3. cp .env.example .env

  4. make bash and then input list of commands in container

composer dumpautoload
php artisan key:generate
php artisan jwt:secret
php artisan migrate --seed
  1. sudo chmod 777 -R ./storage/

A full list of useful commands are in the Makefile

Server is available under address http://localhost:8080/
Phpmyadmin address http://localhost:8081/ (login: root; password: root)

Api documentation: https://documenter.getpostman.com/view/7459001/SVmztGGf?version=latest#a4474934-a937-4a33-9a6b-25a478b71050

Usefull commands

make up - launch docker container
make down - shut docker container down
make bash - go into docker container bash
make test - start phpunit test
make sniff - start code sniffer
make stan - start php stan
make check-code - start test, sniffer and stan
make perm - change file owner