zloyleva / lara5_6_skeleton

Laravel 5.6 JWT, Swagger, Dingo API, Laravel-CORS

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Build Status Total Downloads Latest Stable Version License

Laravel 5.6(7) Skeleton

Installation:

  1. Make a copy of the .env.example

    cp .env.example .env

    ...and fill fields:

    DB_CONNECTION=mysql
    DB_HOST=db
    DB_PORT=3306
    DB_DATABASE=laravel
    DB_USERNAME=laraveluser
    DB_PASSWORD=your_laravel_db_password
    
    DOCKER_PREFIX=skeleton
  2. Install composer dependency, run:

    sudo usermod -a -G docker $USER #Add permission
    make composer_dep
  3. Set permissions on the project directory so that it is owned by your non-root user:

    sudo chown -R $USER:$USER $PWD
  4. Set the application key for the Laravel application

    make key
  5. Optional* >> To cache these settings into a file, which will boost your application's load speed, run:

    docker-compose exec app php artisan config:cache

    Your configuration settings will be loaded into /var/www/bootstrap/cache/config.php on the container.

  6. Creating a User for MySQL

    • Inside the container:
    docker-compose exec db bash
    
    root@e42d3f4adfg:/# mysql -u root -p
    
    mysql> GRANT ALL ON laravel.* TO 'laraveluser'@'%' IDENTIFIED BY 'your_laravel_db_password';
    mysql> FLUSH PRIVILEGES;
    mysql> EXIT;
    

    See more https://github.com/francescomalatesta/laravel-api-boilerplate-jwt.

License

The Laravel framework is open-sourced software licensed under the MIT license.

About

Laravel 5.6 JWT, Swagger, Dingo API, Laravel-CORS

License:MIT License


Languages

Language:PHP 93.3%Language:HTML 3.0%Language:Makefile 2.2%Language:Dockerfile 1.1%Language:Vue 0.4%