About the Bundle
Most developers know, deep down, that they should be provisioning environments for their development work to match their staging and production environements. Sometimes when working on a basic website that runs a FooCMS installation it is easy to just ignore it and run a basic LAMP stack or a MAMP/XAMP/WAMP alternative, but when you're building complex applications things get a little different, and that is where Vagrant steps in.
One instance of making a complex application is when you're building an API. You'll probably have Redit/Memcache/both, lots of credentials to put into place that you don't want in your Git repo, all sorts of worker processes, Chef/Puppet/Ansible scripts to run, etc. An API has a lot of moving parts, and it can be complicated to get them all running perfectly for everyone who needs to work with your API, especially your iPhone/Andriod developer who has never heard of Composer before, and needs to have a local copy of the codebase so he can work with feature branches without spoiling your enire staging server.
Vagrant and API development go together like peanut butter and jelly. Like Keanan and Kel. Like tea and... everything.
A practical guide to Vagrant
How many times did you hear the excuse "works on my machine"? With Vagrant, this stays in the past. Your environments will be exactly the way you want them to be, targeting specific projects for different needs. As easy as cloning a repository and running "vagrant up".
This book covers from basic to advanced concepts on Vagrant, including important ProTips to improve your Vagrant projects and avoid common mistakes. The book was updated to cover the new features on Vagrant 1.5 and 1.6.Provisioners
Vagrant Cookbook comes with quick guides to the 3 most used Vagrant provisioners: Puppet, Ansible and Chef. Following the guide, a practical example will show you how to provision a basic web server with Nginx + PHP5-FPM (PHP 5.5+). Choose the one you like best!Recipes for most common tasks
The book also includes useful recipes for common tasks, writen in Ansible, Puppet and Chef.Code Samples
The complete provisioner examples are available for free on GitHub.
Vagrant Cookbook targets beginner to intermediate users, also serving as a quick getting-started guide for Ansible, Puppet and Chef.Updates
Thanks to the LeanPub platform, is really easy to release updates and notify my readers. Obviously at no extra cost. For any new content / corrections, you will be notified to download the newest version.FeedBack
Any feedback that can help making this book better is highly appreciated. If you find errors, or if you have suggestions, please contact me.
If you prefer a printed version (paperback) rather than an ebook, you can get it here: http://www.lulu.com/shop/erika-heidi/vagrant-cookbook/paperback/product-21809746.html
Build APIs You Won't Hate
Everyone and their dog wants an API, so you should probably learn how to build them.
After finding many of the existing resources for API development to be lacking, Phil learned a lot of things the hard way through years of trial and error. This book aims to condense that experience, taking examples and explanations further than the trivial apples and pears nonsense tutorials often provide.
Phil worked primarily as an API developer for the last three years. One horror was managing an API built in FuelPHP by a freelancer at the million dollar startup he joined. It was utilizing a then deprecated ORM which had been hacked to death by the previous developer, so took the time to delete that mess and build the next version in Laravel, leveraging it's simple routing, database migrations, schema, seeding, etc. When the following major version of the API was built no rewrite was required, and both managed to live side-by-side on the same "API" servers.
By passing on some best practices and general good advice you can hit the ground running with API development, combined with some horror stories and how they were overcome/avoided/averted. This book will discuss the theory of designing and building APIs in any language or framework, with this theory applied in PHP-based examples.
Some of the more advanced topics covered here are endpoint testing, embedding data objects in a consistent and scalable manner, paginating responses (including embedded objects) and hypermedia "HATEOAS" controls.
The Leanpub Unconditional, No Risk, 100% Happiness Guarantee
Within 45 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.
See full terms