npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

laravel-homestead-windows-installer

v0.4.6

Published

Helps installing a new Laravel project on a Windows machine running Homestead as a VM

Downloads

26

Readme

Laravel Homestead Windows Installer

npm version npm Gratipay User

Check out my sister project Larawin. It makes everything easier!

CLI to create a Laravel new site installation in your Windows + Homestead Virtual Machine environment.

It SSH into your Homestead server, then downloads and installs Laravel into your projectName folder. Afterwards, the script provisions your virtual machine and also adds the projectName and IP to Windows hosts file.

It can also only create databases on the VM, without provisioning a new server installation

TOC

Requirements

Installation

npm install -g laravel-homestead-windows-installer

Configuration

The following is the default configuration:

  • vagrantFileDir: ~/.homestead/
  • homesteadFile: ~/Homestead/Homestead.yaml
  • installDir: ''
  • sharedFolder: ~/Code
  • ip: "192.168.10.10"
  • noProject: false

You can find the default configuration file at:

 cd ~/
 ls .laravel-homestead-windows-installer.json

You may override the values you need.

Example:

 {
   "installDir": "Projects",
   "vagrantFilePath": "D:/Homestead",
   "sharedFolder": "D:/Code"
 }

In this example, all new projects will be created under D:/Code/Projects and the Vagrantfile to start and provision the server is in D:/Homestead

Usage

Open Git Bash and type:

laravel-homestead-windows-installer --name projectName
laravel-homestead-windows-installer -n projectName

Command Line Arguments

--name projectName or -n projectName

  • required
  • Try to provide a qualified name, such as project.app or project.local

--vagrantfile path/To/Vagrantfile/ or -f path/To/Vagrantfile/

--database databaseName or -d databaseName

  • optional
  • inform a name to create a new database

--ip X.X.X.X or -i X.X.X.X

  • optional
  • Virtual Machine IP Address
  • Defaults to 192.168.10.10 (check your Homestead.yaml file to verify)

--install-dir

  • optional
  • The dir or subdir you want to create your project. This dir is created under the default shared folder path.

--no-project

  • optional
  • This flag disables project creation
  • NOTE: the flag --name or -n overrides --no-project

--version or -V

  • Show current version

--help

  • Display help text

After install, you can open your browser to http://mysuperproject.app

IMPORTANT!

This script opens and writes the windows hosts file, which is a protected file. You MUST run Node JS (npm) and Git Bash for Windows in administrator mode.

Todo

  • Add other properties to Homestead.yaml such as ports and blackfire
  • If database is informed, automatically add to .env file after project creation

Contributing

  • Fork this project
  • Create a new branch git checkout -b branch-name
  • Make your modifications
  • Test it -- run npm i -g from the root folder and test it
  • Send the pull request
    • If possible, please provide thorough information on what as done
    • If I merge your pull request, your name and email will be added as a contributor

License

MIT

Copyright (c) 2017 Bruno Vaula Werneck

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.