Code Monkey home page Code Monkey logo

php-laravel-codespaces-devcontainer's Introduction

PHP-Laravel-CodeSpaces-DevContainer

This repo provides the .devcontainer files needed to start a CodeSpace for Laravel on GitHub.

Instructions

  1. Copy .devcontainer folder to your project root
  2. (Optional) Copy init_codespace.sh to project root
  3. Push to repo
  4. Access repo GitHub page, open in CodeSpaces
  5. Container should build and IDE should open ready for use
  6. (Optional) Run init_codespace.sh to create .env and run DB migrations/seeds
    . ./init_codespace.sh
  7. To access your site use port forwarding by serving the application
    serve
    #or
    php artisan serve --port=8000 --host=0.0.0.0

MariaDB (ENV settings)

Please set your DB env variables to the following to use the MariaDB docker container

DB_CONNECTION=mysql
DB_HOST=mariadb
DB_PORT=3306
DB_DATABASE=laravel
DB_USERNAME=root
DB_PASSWORD=secret

Notes

  • CodeSpaces is currently in Closed Beta, you need access to use .devcontainer files
  • Includes the following PHP extensions, you can add your own by adjusting the DOCKERFILE
    • bcmath mysqli pdo pdo_mysql zip
  • To access your site you need to run the following alias:
    serve

Credits

https://github.com/PMessinezis/vscode.laravel.devcontainer/blob/master/Dockerfile

php-laravel-codespaces-devcontainer's People

Contributors

mechawrench avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

php-laravel-codespaces-devcontainer's Issues

Codespace keeps loading

I tried using your setup (thanks) but my container keeps loading, before eventually timing out in the browser. Any clue?

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.