sprintive/seeds-installer

console command application that simplifies the process of initializing a project by performing tasks such as creating project folders, cloning a Git repository, configuring virtual hosts, and more.

1.0.4 2023-10-04 09:54 UTC

This package is not auto-updated.

Last update: 2024-05-01 14:57:26 UTC


README

seeds-installer: Kickoff distribution for SMEs

Latest Stable Version Total Downloads Latest Unstable Version License composer.lock

Seeds

Light distribution to kick off all projects regardless scale, you can use it to speed up your projects.

seeds-installer command is a Symfony console application that simplifies the process of initializing a project by performing tasks such as creating project folders, cloning a Git repository, configuring virtual hosts, and more.

Installation

  1. Install Seeds installer global in your device :

    composer global require sprintive/seeds-installer
  2. In your terminal write this command :

    composer -n config --global home  

you will get some thing like this :

/home/<user>/.config/composer

or

/home/<user>/.composer
  1. If you have zsh on your device: In your terminal go write vim ~/.zshrc, then add in the last line this code :

     export PATH="$PATH:$HOME/.composer/vendor/bin"
    

    If you have bashrc on your device in your terminal go write vim ~/.bashrc, then add in the last line this code

    export PATH="$PATH:$HOME/.composer/vendor/bin"
    

    ** this path export PATH="$PATH:$HOME/.composer/vendor/bin" is related to point 2 ( change the path to match with the result you get)

Usage

To clone a new project, use the following command:

seeds-installer new <name>

replace <name> with the desired name for your project.

The new command performs the following steps:

  1. Prepares the project folder.
  2. Clones a Git repository into the project folder.
  3. Sets up a virtual host for the project.
  4. Restarts the Apache web server.
  5. Creates a database for the project.
  6. Generates a local settings file.

Project will installed in this path : /var/www/html/<name>

You need to run composer install to install all packages for the project

Sponsored and developed by

Sprintive

Sprintive is a web solution provider which transform ideas into realities, where humans are the center of everything, and Drupal is the heart of our actions, it has built and delivered Drupal projects focusing on a deep understanding of business goals and objective to help companies innovate and grow.