Skip to content

karthik1407s/sparkplug

 
 

Repository files navigation

Sparkplug PHP Framework

Laravel + Bower + Grunt + Re-usable composer packages = Sparkplug

Installation

Before anything, fork this repository and git clone on your local, once changes are added, later you can send in a pull request

Pre-requisite

  • Ubunutu machine preferably, or a VM which has Ubuntu (If this is the case, skip the Setup block and follow below steps)
    • cd /var/www
    • git clone
    • cd /var/www/
    • sudo composer install
    • php artisan serve
    • If you would like to stick to http://localhost:8000 skip the App configuration block
  • If you still would want to opt to be more lite, you could do the following
  • Fork this repository, to do the changes and send in a pull request

Restart your machine once

Setup

  • Open cmder
  • Open Virtualbox
  • vagrant box add https://atlas.hashicorp.com/provolution/boxes/lemp-box
  • vagrant init provolution/lemp-box
  • You should have a Vagrantfile in the place where the command was executed
    • Open up Vagrantfile, find line, config.vm.synced_folder and change it to
    • Open folder and create a new folder www
    • config.vm.synced_folder "/www/", "/var/www/"
  • vagrant up --provider virtualbox - Wait for the dev box to boot itself
  • vagrant ssh - To get into the terminal
  • bash -l - As this box opens up in zsh terminal be default
  • cd /var/www/
  • git clone
  • cd /var/www/
  • sudo composer install
  • php artisan serve - If you want to run on port 8000 you may skip App configuration block
  • exit
  • Once you are in the Windows or your Mac OS box's browser you can access the project at http://localhost:8000

App configuration

Below we are setting a virtual host and access our application on the default port 80

  • Create a virtual domain on your nginx server, [How To Set Up Nginx Server Blocks] (https://www.digitalocean.com/community/tutorials/how-to-set-up-nginx-server-blocks-virtual-hosts-on-ubuntu-14-04-lts)
  • Login to mysql with your default mysql username and password, for this box it is root, root
  • Create a new database with name sparkplug and exit mysql
  • Change the DB username and password in the .env file present in your project
  • cd /var/www/ && php artisan migrate - This will create all the tables required
  • Login again to mysql and import all the DB tables
  • Open up the URL in your browser

References

Credits

People

Companies

License

This framework is open-sourced software licensed under the MIT license

About

Sparkplug = Laravel + Bower + Grunt + Re-usable composer packages

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • HTML 51.1%
  • JavaScript 46.2%
  • PHP 2.7%