Giter Club home page Giter Club logo

laravelexample's Introduction

LaravelExample

Setup

  • download/clone the git repository from
    • git clone https://github.com/paslandau/laravelexample.git
  • navigate into the project folder
    • cd laravelexample
  • make sure not to work directly on the master branch
    • git checkout -b my_local_branch
  • to prepare the vagrant configuration, run
    • vendor/bin/homestead make or vendor/bin/homestead.bat make on Windows
  • adjust the hosts file and the newly created Homestead.yaml in the root of the repo according to your needs. Usually that includes:
    • adjust ip
      • make sure the ip is not already used in your local network
    • add an entry to your host file
      • [IP] laravelexample.app (e.g. 192.168.33.111 laravelexample.app)
      • location on Unix: /etc/hosts
      • location on Windows: C:\Windows\System32\drivers\etc
  • adjust folders and sites mapping (optional; it should be set up correctly by default if you followed the steps above). Watch out for the following:
    • the folders: - map: "[PATH]" should point to the absolute path to the cube repository on your local machine
    • the folders: to: "[PATH]" denotes the path on your vagrant machine that is mapped to the above mentioned path on your local machine, so that you can access your local files within the vagrant box.
    • the sites: - map: "[HOSTNAME]" denotes the hostname that the nginx is looking for to serve content on
      • you should adjust that to the hostname chosen for your hostfile (e.g. laravelexample.app) although it not necessary since nginx will even respond to another hostname
    • the sites: - to: "[PATH]" denotes the absolute path withing the vagrant box that the above mentioned hostname uses as root path for content. This should be the path to the public folder of this repository
  • start the vagrant box with vagrant up, ssh into it with vagrant ssh, switch to the project folder (by default, this should be cd /home/vagrant/laravelexample/) and install the project's dependencies
    • composer install
  • setup laravel by generating an application key and setting up the .env file:
    • php artisan key:generate
    • cp .env.example .env
  • generate the meta data files for better code completion
    • php artisan ide-helper:meta
    • php artisan ide-helper:generate
    • php artisan ide-helper:model

You should now be able to open http://laravelexample.app/ in your browser and see the Laravel welcome page :)

laravelexample's People

Watchers

Charlene Wroblewski 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.