Giter Site home page Giter Site logo

easily's Introduction

Easily Environment

Work in progres...

Dependencies

How this works?

Add to your .bashrc or .zshrc or whatever:

source ~/path/to/this/project/include.sh

This adds the "easily" command that works like this:

Usage: easily [start|stop|create|remove] {project}
- start {project}	 Starts the project
- stop {?project}	 Stops the given project or the project currently running
- create {project}	 Creates a new project
- remove {project}	 Removes the project containers from docker
- help			 Shows this help message

Creating new Projects

easily create my-project

Configuration

You can call a project by a shorthand and give it a nice presentable name in the file: ./config/projects.ini

Aliases

Alias Description
rebuild {service} rebulds the given service, ie. app/php/mysql (this might delete the changes you have on it
npm runs npm
php runs php commands, ie. php -v
p runs tests php artisan test --parallel --processes 6
pf {arg} runs tests with a filter php artisan test --fi
art shorthand for php artisan

All aliases run on the project's context

You can customize it by copying the default aliases file to your project's directory cp stubs/aliases.sh projects/my-project/.aliases

HTTPS

To run in https you need to import the certificate authority generated on ./config/nginx/rootCA.pem

If you don't know how to do it, there are plenty of tutorials on Google

TO-DO

  • use a single nginx instance to serve the projects
  • allow for multiple containers to run at the same time
  • "update" command that pulls the latest changes and re-source
  • a command to upgrade/downgrade php/npm versions
  • a command to dump/restore the main database
  • control panel
  • an "install" command to install docker and all dependencies

easily's People

Contributors

eduphp 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.