Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Develop & Deploy your Laravel Application on Google Cloud Platforms

Develop & Deploy your Laravel Application on Google Cloud Platforms

A simple Laravel Application (Order Listing App.) showing how to develop and deploy Laravel application on Google Cloud Platforms (App. Engine).

This Presentation was used during a codelab session at Google I/O '17 Extended Ibadan organised by Google Developers Group, Ibadan.

Olanrewaju Abidogun

June 12, 2017
Tweet

More Decks by Olanrewaju Abidogun

Other Decks in Technology

Transcript

  1. Build & Deploy your Laravel Application on Google Cloud Platforms

    Olanrewaju Abidogun Software Developer, Total Infotech & Telecoms Limited
  2. Who am I? ❖ Software Developer at Total Infotech &

    Telecoms Limited ❖ Lead Developer at Outfit Nigeria ❖ Ex. Software Developer Cellcore Limited ❖ Data Science Enthusiast Twitter | Github [@codeInBit]
  3. What We’ll Cover • Basic Introduction to Laravel • Setting

    up our Development Environment • Build a simple order listing app. • Basic Introduction to Google Cloud Platforms • Deploy our app. on Google App Engine
  4. What You’ll Learn • How laravel works • How to

    bootstrap a simple Laravel Application • How to deploy your Laravel Application on Google Cloud Platform (App Engine)
  5. ❖ Open Source PHP Framework ❖ Supports MVC architectural pattern

    ❖ Simple, Elegant and Readable code ❖ Tailored for both team and solo developer ❖ It has strong community support
  6. Lets setup our development environment ★ Server Requirements ◦ Install

    a local server (LAMP/WAMP/MAMP et’ll) ▪ Ensure it has the following specification • PHP >= 5.6.4 • OpenSSL PHP Extension • PDO PHP Extension • Mbstring PHP Extension • Tokenizer PHP Extension • XML PHP Extension ★ Laravel Homestead ★ Valet
  7. Lets setup our development environment ★ Install Laravel & Create

    a New Project ◦ Install Composer (https://getcomposer.org/) ◦ Download the Laravel Installer using (composer global require "laravel/installer") ◦ Create a new Laravel Project with (laravel new blog)
  8. Talk is cheap! Let's get our hands dirty… See code

    at [https://github.com/codeInBit/Google-IO-Ext ended-Ibadan]
  9. Google Cloud Platforms It’s a suite of cloud computing services

    that runs on the same infrastructure that Google uses internally for its end-user products, such as Google Search, Youtube etc.
  10. Why Google Cloud Platform ❖ Secure ❖ High Performance ❖

    Cost Effective ❖ It has everything you need to build and scale. Compute, databases and storage, networking, developer tools, etc... The list is endless…..
  11. Requirement ❖ Create a project in the Google Cloud Platform

    Console (Note you Project ID) ❖ Enable billing for your project. ❖ Install the Google Cloud SDK.
  12. Deploy contd. ❖ Run the command “php artisan key:generate --show”,

    then update YOUR_APP_KEY in app.yaml with the value ❖ Add the following under scripts in composer.json "post-deploy-cmd": [ "chmod -R 755 bootstrap\/cache" ] ❖ Run the command “gcloud app deploy” ❖ Visit http://YOUR_PROJECT_ID.appspot.com to see your application.
  13. Resources ❖ Laravel official website [https://laravel.com/] ❖ http://itsolutionstuff.com/ ❖ https://laracasts.com/

    ❖ https://cloud.google.com/php/quickstarts ❖ https://cloud.google.com/community/tutorials/run-laravel-on-appengine-flexibl e