GithubHelp home page GithubHelp logo

laravel-yarn-demo's Introduction

Laravel Project

Software needed to run this project

  1. Docker Desktop (for Windows or Mac)
  2. Docker CE (for Linux)

Instructions on how to run this project

  1. Copy the content .env.example and paste it into .env

  2. Run docker compose command.

    docker compose up -d --build
    
  3. Once everything is okay, run this command below to install Laravel dependencies.

    docker exec -it php bash;
    
    composer install;
    
    php artisan migrate;
    
  4. You can visit https://laravel-docker-base.localtest.me to visit the site.

  5. Additionally, you can test run the tests using this command as well.

    php artisan test;
    
  6. To close the docker compose, please run this.

    docker compose down;
    
  7. To run nodejs related stuff, you can use command below.

    docker compose run --rm yarn install;
    
    docker compose run --rm yarn dev;
    
    docker compose run --rm yarn build;
    
  8. Docker Build Instructions

    docker build --no-cache --network host --file ./docker/php/Dockerfile --target php-production --build-arg CURRENT_ENVIRONMENT=production -t xbbshampoo/laravel-test-app:latest .;
    
    docker build --no-cache --network host --file ./docker/nginx/Dockerfile --target webserver-production -t xbbshampoo/laravel-test-nginx:latest .;
    
    docker push xbbshampoo/laravel-test-nginx:latest;
    
    docker push xbbshampoo/laravel-test-app:latest;
    

laravel-yarn-demo's People

Contributors

xbbshampoo avatar

Watchers

 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.