GithubHelp home page GithubHelp logo

tricarte / vagrant-lamp Goto Github PK

View Code? Open in Web Editor NEW

This project forked from learnwebcode/vagrant-lamp

1.0 0.0 0.0 2.35 MB

Fictional University wordpress course files

PHP 0.19% JavaScript 43.01% HTML 56.81%

vagrant-lamp's Introduction

Brad's Vagrant LAMP Dev Environment

Before moving ahead with this starter environment you'll need to have a few things installed on your computer:

  • VirtualBox - Free tool that allows you to run virtual machines on your computer.
  • Vagrant - Free tool that automates the creation of development environments within a virtual machine.

Once you've instalaled VirtualBox and Vagrant on your computer you're ready to continue:

  1. Open a command-line (Terminal on Mac, PowerShell or Git Bash on Windows)
  2. cd into this project's root folder
  3. Run vagrant up
  4. Go grab a coffee, it will take a few minutes
  5. Once it completes you'll need to edit your computer's hosts file to point fictional-university.test to our virtual machine. On Windows your host file lives in C/Windows/System32/Drivers/etc on Mac your hosts file lives in /etc
  6. Add this line at the bottom of your hosts file: 192.168.56.101 fictional-university.test
  7. Now you can visit fictional-university.test in any browser. The root of this project is /fictional-university/app

Database Info

An initial database is automatically created for you.

Database name: dbname

Database user: dbuser

User Password: 123

Database hostname: localhost

Managing Databases

This box does not include PhpMyAdmin. Instead I recommend using Seqeul Pro (on Mac) and HeidiSQL (on Windows). Here are the settings you can use to connect.

MySQL Host: 127.0.0.1

Username: dbuser

Password: 123

SSH Host: 192.168.56.101

SSH User: vagrant

SSH Key: point towards the file that lives in our project folder under puphpet/files/dot/ssh/id_rsa

Automated Workflow (PostCSS, webpack, BrowserSync, etc...)

That's technically all you need to get your LAMP development environment up and running. However, my setup also leverages a few workflow tools. If you'd like to take full advantage of my setup you'll also want to install:

  • Node & NPM - Node is a free tool that can run JavaScript outside the context of a web browser.
  • webpack - Free tool that bundles up multiple files.
  • Gulp - Free task-runner tool. No longer the cool kid on the block (webpack owns that title now) but I still prefer Gulp for generic task running and non-bundle'ish tasks.

vagrant-lamp's People

Contributors

learnwebcode avatar

Stargazers

 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.