Giter Site home page Giter Site logo

laravel-vue-word-trainer's Introduction

Word trainer

Laravel sail

  • Prepare environment In file ~/.bashrc add strings:
alias sail='bash vendor/bin/sail'
export PATH="$HOME/.config/composer/vendor/bin:$PATH"
  • Clone the repository with git clone
  • Copy .env.dev file to .env
  • Copy ./docker/docker-compose-sail.yml file to docker-compose.yml
  • Run sail up --build -d
  • Run sail composer install
  • Run sail artisan key:generate
  • Run sail artisan migrate --seed
  • Run sail artisan l5-swagger:generate (Regenerate documentation)
  • Run sail npm i && sail npm run watch (Regenerate front)

Laravel docker

  • Prepare environment In file ~/.bashrc add strings:
alias laradoc="docker-compose exec --user $(id -u):$(id -g)"
  • Clone the repository with git clone
  • Copy .env.dev file to .env
  • Copy ./docker/docker-compose-docker.yml file to docker-compose.yml
  • Run docker-compose up --build -d
  • Run laradoc app composer install
  • Run laradoc app php artisan key:generate
  • Run laradoc app php artisan migrate --seed
  • Run laradoc app php artisan l5-swagger:generate (Regenerate documentation)
  • Run docker-compose run --rm npm i
  • Run docker-compose run --rm npm run watch (Regenerate front)

Links

login: [email protected]
password: password

VS Code extentions

  • qvtec3.swagger-php-annotation
  • bmewburn.vscode-intelephense-client
  • hollowtree.vue-snippets
  • mubaidr.vuejs-extension-pack
  • xdebug.php-debug
  • ms-azuretools.vscode-docker
  • ms-vscode-remote.remote-containers

Debug from VSCode

  • in VSCode open debug (Ctrl+Shift+D)
  • add configuration json file for PHP
{
    "version": "0.2.0",
    "configurations": [
        {
            "name": "Listen for Xdebug",
            "type": "php",
            "request": "launch",
            "port": 9003,
            "pathMappings": {
                "/var/www/html": "${workspaceFolder}"
            }
        }
    ]
}
  • to debug api in Postman add url param
XDEBUG_SESSION_START=PHPSTORM

laravel-vue-word-trainer's People

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.