GithubHelp home page GithubHelp logo

devtools's Introduction

About Devtools

Devtools is group of useful console functions for development made with Laravel Framework

Install

git clone https://[email protected]/gonzartur/devtools.git
cd devtools
composer install

Edit .env file and add your configuration. An example below:

DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=devtools
DB_USERNAME=devtools
DB_PASSWORD=secret

#To use the s3:user command, the following variables are needed
AWS_ACCESS_KEY_ID=aws-user-key
AWS_SECRET_ACCESS_KEY=aws-user-secret
AWS_DEFAULT_REGION=ap-southeast-2

If you don't need database functions, you can avoid this the following step and no database credentials are required on .env file:

php artisan migrate

Available commands

###Import SSH configurations

Import SSH connections configured on ~/.ssh/config file

php artisan ssh:import

###Add a lagoon project

This command would connect to lagoon to get database configurations of a selected project.

php artisan lagoon:add

###Import database configurations

This command read mysql config files that contains login credentials and import them in application database.

php artisan database:import

###Create a database backup

It creates a a database babckup in .sql.bz format and stores it. Path of file created is displayed in console output:

php artisan database:backup

###Restore a database backup

It asks for the backup file to use and restore it to another selected database

php artisan database:restore

###Sync databases

This command work as backup and restore at the same time but piping between databases without dump file generation:

php artisan database:sync

###Create an AWS user with access to selected S3 buckets only

This command creates a policy, a group, a user, access keys and associate them in order to have a user that can access only to the selected S3 buckets

php artisan s3:user

###SSH into a docker container

Connects to a docker container running on local.

php artisan docker:ssh

devtools's People

Contributors

notf0und avatar

Stargazers

 avatar

Watchers

James Cloos 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.