zloyleva / github_repo_list

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Build Status Total Downloads Latest Stable Version License

Laravel 5.7 Skeleton

Installation:

  1. Install composer dependency, run:

    make composer_dep
  2. Set permissions on the project directory so that it is owned by your non-root user:

    sudo chown -R $USER:$USER $PWD
  3. 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
  4. Set the application key for the Laravel application

    docker-compose exec app php artisan key:generate
  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;
    
  7. Run FrontEnd

    cd client && npm start

    before need install dependencies

License

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

About

License:MIT License


Languages

Language:PHP 80.2%Language:HTML 14.1%Language:Vue 3.6%Language:Makefile 1.1%Language:Dockerfile 0.9%