Giter Site home page Giter Site logo

twill-codespaces's Introduction

Twill - CodeSpaces

Inspired by microsoft/vscode-remote-try-php template, you can use the .devcontainer files to start a Twill project into GitHub CodeSpaces.

Instructions for generating the Codespace

  1. Copy .devcontainer folder to your project root

  2. Push to repo

  3. Access repo GitHub page, open in CodeSpaces

  4. Container should build and IDE should open ready for use

  5. Create a .env file from the example.

    cp .env.example .env
  1. Add the DB env variables to use the MariaDB defined in the docker container. Also add the ADMIN_APP_PATH due to codespaces right now can't redirect subdomains at the moment.
ADMIN_APP_PATH=admin

DB_CONNECTION=mysql
DB_HOST=mariadb
DB_PORT=3306
DB_DATABASE=laravel
DB_USERNAME=root
DB_PASSWORD=secret
  1. Install the packages
    composer install
  1. Generate Key. Migrate DB structure and create Twill superadmin
    php artisan key:generate
    php artisan migrate
    php artisan twill:superadmin
  1. Build the FE. Assuming NPM by default. Adjust it to your needs if you are using yarn or anything else.
    npm install
    npm run dev

Accesing the Site.

  1. In order to access the site use the alias
    serve

or port forwarding by serving the application with

    php artisan serve --port=8000 --host=0.0.0.0

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

Dockerfile and devcontainer.json based on:

https://github.com/PMessinezis/vscode.laravel.devcontainer/

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.