2017 © Pedro Peláez
 

library setup

Setup apps in one command for local work

image

alfred-nutile-inc/setup

Setup apps in one command for local work

  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

CoreApp Setup

This requires some conventions noted below., (*1)

Pull it in via composer, (*2)

composer require alfred-nutile-inc/setup

Then add it to your Kernel, (*3)

    protected $commands = [
        'App\Console\Commands\Inspire',
        'AlfredNutileInc\CoreApp\SetUp\SetupCommand'
    ];

Then, (*4)

Setup

Git clone the repo to your homestead, (*5)

The conventions for this setup is simple, (*6)

Your local domain is the same as the repo name. If the repo is foo then foo.dev, (*7)

The Command is, (*8)

php artisan core-app:setup reponame

This will, (*9)

  • setup the db as the name of the reponame
  • setup nginx and restart it as the domain name says above. You need to udpate you machine hosts file
  • copies .env.example to .env update it as needed.
  • sets up testing stub db for sqlite
  • composer install and dump-autoload
  • migrates
  • bower install
  • npm install

You can limit what to run like this, (*10)

php artisan core-app:setup reponame --run=SetupServerConfig --run=SetupFrontEnd

Conventions

Your local env is named after the repo name and .dev so repo foo is foo.dev local, (*11)

SSL is always default. https://github.com/alfred-nutile-inc/internal_practices/blob/master/ssl.md for help on this., (*12)

Adding to the package

Just add your step to app/SetUp/SetupCommand.php:93, (*13)

        SetupDeploymentScripts::fire($this);
        SetupEnv::fire($this);
        SetupDb::fire($this);
        RunMigrations::fire($this);
        SetupTesting::fire($this);
        SetupFrontEnd::fire($this);
        SetupServerConfig::fire($this);

RoadMap

  • Flags to run only some/one of the steps php artisan core-app:setup reponame --SetupEnv --SetupDevelopmentScripts
  • Plugin steps that are part of the project and not part of this repo.
  • One command to setup Ec2, RDS etc
  • S3 setup
  • Setup git repo dev, prod, staging and delete master

The Versions

23/03 2015

dev-master

9999999-dev

Setup apps in one command for local work

  Sources   Download

The Requires

 

by Alfred Nutile Inc