Git Product home page Git Product logo

wsl-laravel's Introduction

WSL Setup script for laravel dev env

This is a setup script for Windows Subsystem Linux environment running on Ubuntu 18.04 LTS. This script installs nginx, mariadb, php7.3, nodejs, yarn and composer with all the modules necessary for Laravel 6 to run.

How to use

  1. Setup WSL on your Windows PC -> https://docs.microsoft.com/en-us/windows/wsl/install-win10
  2. Clone this repo to your home foler
cd ~/
git clone https://github.com/kuressaareametikool/wsl-laravel.git
  1. Change directory to wsl-laravel
cd wsl-laravel
  1. Give execution rights to the script
sudo chmod +x setup.sh
  1. Run the script
./setup.sh
  1. When install is done open http://localhost on your Windows 10 browser

Using VS Code

It's also possible to use VS Code directly form Ubuntu. Go to any folder and type

code .

If VS Code is installed on your PC it should open automatically and offer to install the WSL extension. Click on Install and you should be good to go.

PHP

If you choose not to install Laravel then a basic modern PHP stack will be installed. Nginx will then serve the site from

/var/www/html

MariaDB

Latest version of MariaDB is also installed with a demo database of Books.

Laravel

When you choose to install Laravel you have two options. First one is to create the basic structure so you can clone your own repo and the second option is to install a whole new version. The new version will be installed to:

/var/www/laravel

With both options Nginx is configured to serve the site from the /var/www/laravel/public dir.

wsl-laravel's People

Contributors

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