SlideShare una empresa de Scribd logo
1 de 20
Descargar para leer sin conexión
Build & Deploy your Laravel
Application on Google Cloud
Platforms
Olanrewaju Abidogun
Software Developer, Total Infotech &
Telecoms Limited
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]
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
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)
Let's Meet Laravel...
❖ 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
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
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)
Laravel Project
Structure
Talk is cheap!
Let's get our hands
dirty…
See code at
[https://github.com/codeInBit/Google-IO-Ext
ended-Ibadan]
End Product
Order Listing App.
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.
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…..
Now we need to deploy your Laravel
Application on Cloud
Requirement
❖ Create a project in the Google Cloud Platform Console (Note you Project ID)
❖ Enable billing for your project.
❖ Install the Google Cloud SDK.
Deploy
❖ Create an app.yaml file with the following contents in your laravel project:
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.
See code at
[https://github.com/codeInBit/Google-IO-Exte
nded-Ibadan]
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
Thank you...

Más contenido relacionado

La actualidad más candente

Native Script by Sebastian Witalec
Native Script by Sebastian WitalecNative Script by Sebastian Witalec
Native Script by Sebastian Witalec
Simone Basso
 

La actualidad más candente (20)

Sean schofield & Richard Lister, Spree Commerce_ Fearless deployment @ Open C...
Sean schofield & Richard Lister, Spree Commerce_ Fearless deployment @ Open C...Sean schofield & Richard Lister, Spree Commerce_ Fearless deployment @ Open C...
Sean schofield & Richard Lister, Spree Commerce_ Fearless deployment @ Open C...
 
Automate Apache Kafka deployment and Management with Kubernetes | Damien Gasp...
Automate Apache Kafka deployment and Management with Kubernetes | Damien Gasp...Automate Apache Kafka deployment and Management with Kubernetes | Damien Gasp...
Automate Apache Kafka deployment and Management with Kubernetes | Damien Gasp...
 
Salesforce Einstein API Integration with MuleSoft - NLP and Computer Vision
Salesforce Einstein API Integration with MuleSoft - NLP and Computer VisionSalesforce Einstein API Integration with MuleSoft - NLP and Computer Vision
Salesforce Einstein API Integration with MuleSoft - NLP and Computer Vision
 
Introduction to NativeScript - BuildTruly Native Apps using JavaScript
Introduction to NativeScript - BuildTruly Native Apps using JavaScriptIntroduction to NativeScript - BuildTruly Native Apps using JavaScript
Introduction to NativeScript - BuildTruly Native Apps using JavaScript
 
Develop, deploy, and operate services at reddit scale oscon 2018
Develop, deploy, and operate services at reddit scale   oscon 2018Develop, deploy, and operate services at reddit scale   oscon 2018
Develop, deploy, and operate services at reddit scale oscon 2018
 
Kubernetes at Reddit: An Origin Story - KubeCon NA 2018
Kubernetes at Reddit: An Origin Story - KubeCon NA 2018Kubernetes at Reddit: An Origin Story - KubeCon NA 2018
Kubernetes at Reddit: An Origin Story - KubeCon NA 2018
 
Lightning Web Components- Ep 4 - Navigation Services, LWC and Aura Interopera...
Lightning Web Components- Ep 4 - Navigation Services, LWC and Aura Interopera...Lightning Web Components- Ep 4 - Navigation Services, LWC and Aura Interopera...
Lightning Web Components- Ep 4 - Navigation Services, LWC and Aura Interopera...
 
Local Drupal development using docksal
Local Drupal development using docksalLocal Drupal development using docksal
Local Drupal development using docksal
 
The Hare and the Tortoise: Open Source, Standards & Technological Debt
The Hare and the Tortoise: Open Source, Standards & Technological DebtThe Hare and the Tortoise: Open Source, Standards & Technological Debt
The Hare and the Tortoise: Open Source, Standards & Technological Debt
 
Jimmie Lindstrom, Braintree_ePayment Workshop @ Open Commerce Conference 2016
Jimmie Lindstrom, Braintree_ePayment Workshop @ Open Commerce Conference 2016Jimmie Lindstrom, Braintree_ePayment Workshop @ Open Commerce Conference 2016
Jimmie Lindstrom, Braintree_ePayment Workshop @ Open Commerce Conference 2016
 
Introducing ASP.NET vNext – The Future of .NET on the Server | FalafelCON 2014
Introducing ASP.NET vNext – The Future of .NET on the Server | FalafelCON 2014Introducing ASP.NET vNext – The Future of .NET on the Server | FalafelCON 2014
Introducing ASP.NET vNext – The Future of .NET on the Server | FalafelCON 2014
 
Introduction to React Native
Introduction to React NativeIntroduction to React Native
Introduction to React Native
 
ng-conf NativeScript and Angular 2 Workshop
ng-conf NativeScript and Angular 2 Workshopng-conf NativeScript and Angular 2 Workshop
ng-conf NativeScript and Angular 2 Workshop
 
Functional as a service TDC 2020
Functional as a service TDC 2020Functional as a service TDC 2020
Functional as a service TDC 2020
 
Migrating .NET Application to .NET Core
Migrating .NET Application to .NET CoreMigrating .NET Application to .NET Core
Migrating .NET Application to .NET Core
 
Native Script by Sebastian Witalec
Native Script by Sebastian WitalecNative Script by Sebastian Witalec
Native Script by Sebastian Witalec
 
DevOps for Hackathons: DevOps without the Ops
DevOps for Hackathons: DevOps without the OpsDevOps for Hackathons: DevOps without the Ops
DevOps for Hackathons: DevOps without the Ops
 
Putting The 'M' In MBaaS—Red Hat Mobile Client Development Platform (Jay Balu...
Putting The 'M' In MBaaS—Red Hat Mobile Client Development Platform (Jay Balu...Putting The 'M' In MBaaS—Red Hat Mobile Client Development Platform (Jay Balu...
Putting The 'M' In MBaaS—Red Hat Mobile Client Development Platform (Jay Balu...
 
Laravel workshop
Laravel workshopLaravel workshop
Laravel workshop
 
Dockerizing react app
Dockerizing react appDockerizing react app
Dockerizing react app
 

Similar a Develop & Deploy your Laravel Application on Google Cloud Platforms

GoogleDSC_ GHRCE_ flutter_firebase.pptx
GoogleDSC_ GHRCE_  flutter_firebase.pptxGoogleDSC_ GHRCE_  flutter_firebase.pptx
GoogleDSC_ GHRCE_ flutter_firebase.pptx
GoogleDeveloperStude22
 
Enterprise software needs a PaaS
Enterprise software needs a PaaSEnterprise software needs a PaaS
Enterprise software needs a PaaS
hmalphettes
 
Intalio create and cloudfoudry - short
Intalio create and cloudfoudry - shortIntalio create and cloudfoudry - short
Intalio create and cloudfoudry - short
hmalphettes
 

Similar a Develop & Deploy your Laravel Application on Google Cloud Platforms (20)

NCDevCon 2017 - Cross Platform Mobile Apps
NCDevCon 2017 - Cross Platform Mobile AppsNCDevCon 2017 - Cross Platform Mobile Apps
NCDevCon 2017 - Cross Platform Mobile Apps
 
GoogleDSC_ GHRCE_ flutter_firebase.pptx
GoogleDSC_ GHRCE_  flutter_firebase.pptxGoogleDSC_ GHRCE_  flutter_firebase.pptx
GoogleDSC_ GHRCE_ flutter_firebase.pptx
 
Laravel CI / CD in Azure Web Apps - Global Azure Bootcamp Jakarta
Laravel CI / CD in Azure Web Apps -  Global Azure Bootcamp JakartaLaravel CI / CD in Azure Web Apps -  Global Azure Bootcamp Jakarta
Laravel CI / CD in Azure Web Apps - Global Azure Bootcamp Jakarta
 
Brisbane MuleSoft Meetup 2023-03-22 - Anypoint Code Builder and Splunk Loggin...
Brisbane MuleSoft Meetup 2023-03-22 - Anypoint Code Builder and Splunk Loggin...Brisbane MuleSoft Meetup 2023-03-22 - Anypoint Code Builder and Splunk Loggin...
Brisbane MuleSoft Meetup 2023-03-22 - Anypoint Code Builder and Splunk Loggin...
 
Run your Java apps on Cloud Foundry
Run your Java apps on Cloud FoundryRun your Java apps on Cloud Foundry
Run your Java apps on Cloud Foundry
 
Run Your Java Code on Cloud Foundry - Andy Piper (Pivotal)
Run Your Java Code on Cloud Foundry - Andy Piper (Pivotal)Run Your Java Code on Cloud Foundry - Andy Piper (Pivotal)
Run Your Java Code on Cloud Foundry - Andy Piper (Pivotal)
 
Devops with Python by Yaniv Cohen DevopShift
Devops with Python by Yaniv Cohen DevopShiftDevops with Python by Yaniv Cohen DevopShift
Devops with Python by Yaniv Cohen DevopShift
 
Docker for dev
Docker for devDocker for dev
Docker for dev
 
Enterprise software needs a PaaS
Enterprise software needs a PaaSEnterprise software needs a PaaS
Enterprise software needs a PaaS
 
Intalio create and cloudfoudry - short
Intalio create and cloudfoudry - shortIntalio create and cloudfoudry - short
Intalio create and cloudfoudry - short
 
Designing flexible apps deployable to App Engine, Cloud Functions, or Cloud Run
Designing flexible apps deployable to App Engine, Cloud Functions, or Cloud RunDesigning flexible apps deployable to App Engine, Cloud Functions, or Cloud Run
Designing flexible apps deployable to App Engine, Cloud Functions, or Cloud Run
 
Cross Platform Mobile App Development
Cross Platform Mobile App DevelopmentCross Platform Mobile App Development
Cross Platform Mobile App Development
 
DevAssistant, Docker and You
DevAssistant, Docker and YouDevAssistant, Docker and You
DevAssistant, Docker and You
 
Free Mongo on OpenShift
Free Mongo on OpenShiftFree Mongo on OpenShift
Free Mongo on OpenShift
 
Build and automate your machine learning application with docker and jenkins
Build and automate your machine learning application with docker and jenkinsBuild and automate your machine learning application with docker and jenkins
Build and automate your machine learning application with docker and jenkins
 
Javantura v4 - Support SpringBoot application development lifecycle using Ora...
Javantura v4 - Support SpringBoot application development lifecycle using Ora...Javantura v4 - Support SpringBoot application development lifecycle using Ora...
Javantura v4 - Support SpringBoot application development lifecycle using Ora...
 
Red Hat Forum Benelux 2015
Red Hat Forum Benelux 2015Red Hat Forum Benelux 2015
Red Hat Forum Benelux 2015
 
Apache cordova
Apache cordovaApache cordova
Apache cordova
 
eXoer on the grill: eXo Add-ons factory using Docker and Codenvy
eXoer on the grill: eXo Add-ons factory using Docker and CodenvyeXoer on the grill: eXo Add-ons factory using Docker and Codenvy
eXoer on the grill: eXo Add-ons factory using Docker and Codenvy
 
[20200720]cloud native develoment - Nelson Lin
[20200720]cloud native develoment - Nelson Lin[20200720]cloud native develoment - Nelson Lin
[20200720]cloud native develoment - Nelson Lin
 

Último

Último (20)

Portal Kombat : extension du réseau de propagande russe
Portal Kombat : extension du réseau de propagande russePortal Kombat : extension du réseau de propagande russe
Portal Kombat : extension du réseau de propagande russe
 
TEST BANK For, Information Technology Project Management 9th Edition Kathy Sc...
TEST BANK For, Information Technology Project Management 9th Edition Kathy Sc...TEST BANK For, Information Technology Project Management 9th Edition Kathy Sc...
TEST BANK For, Information Technology Project Management 9th Edition Kathy Sc...
 
AI presentation and introduction - Retrieval Augmented Generation RAG 101
AI presentation and introduction - Retrieval Augmented Generation RAG 101AI presentation and introduction - Retrieval Augmented Generation RAG 101
AI presentation and introduction - Retrieval Augmented Generation RAG 101
 
WebRTC and SIP not just audio and video @ OpenSIPS 2024
WebRTC and SIP not just audio and video @ OpenSIPS 2024WebRTC and SIP not just audio and video @ OpenSIPS 2024
WebRTC and SIP not just audio and video @ OpenSIPS 2024
 
The Metaverse: Are We There Yet?
The  Metaverse:    Are   We  There  Yet?The  Metaverse:    Are   We  There  Yet?
The Metaverse: Are We There Yet?
 
What's New in Teams Calling, Meetings and Devices April 2024
What's New in Teams Calling, Meetings and Devices April 2024What's New in Teams Calling, Meetings and Devices April 2024
What's New in Teams Calling, Meetings and Devices April 2024
 
Simplified FDO Manufacturing Flow with TPMs _ Liam at Infineon.pdf
Simplified FDO Manufacturing Flow with TPMs _ Liam at Infineon.pdfSimplified FDO Manufacturing Flow with TPMs _ Liam at Infineon.pdf
Simplified FDO Manufacturing Flow with TPMs _ Liam at Infineon.pdf
 
ECS 2024 Teams Premium - Pretty Secure
ECS 2024   Teams Premium - Pretty SecureECS 2024   Teams Premium - Pretty Secure
ECS 2024 Teams Premium - Pretty Secure
 
ASRock Industrial FDO Solutions in Action for Industrial Edge AI _ Kenny at A...
ASRock Industrial FDO Solutions in Action for Industrial Edge AI _ Kenny at A...ASRock Industrial FDO Solutions in Action for Industrial Edge AI _ Kenny at A...
ASRock Industrial FDO Solutions in Action for Industrial Edge AI _ Kenny at A...
 
Google I/O Extended 2024 Warsaw
Google I/O Extended 2024 WarsawGoogle I/O Extended 2024 Warsaw
Google I/O Extended 2024 Warsaw
 
Easier, Faster, and More Powerful – Notes Document Properties Reimagined
Easier, Faster, and More Powerful – Notes Document Properties ReimaginedEasier, Faster, and More Powerful – Notes Document Properties Reimagined
Easier, Faster, and More Powerful – Notes Document Properties Reimagined
 
How Red Hat Uses FDO in Device Lifecycle _ Costin and Vitaliy at Red Hat.pdf
How Red Hat Uses FDO in Device Lifecycle _ Costin and Vitaliy at Red Hat.pdfHow Red Hat Uses FDO in Device Lifecycle _ Costin and Vitaliy at Red Hat.pdf
How Red Hat Uses FDO in Device Lifecycle _ Costin and Vitaliy at Red Hat.pdf
 
Introduction to FDO and How It works Applications _ Richard at FIDO Alliance.pdf
Introduction to FDO and How It works Applications _ Richard at FIDO Alliance.pdfIntroduction to FDO and How It works Applications _ Richard at FIDO Alliance.pdf
Introduction to FDO and How It works Applications _ Richard at FIDO Alliance.pdf
 
Long journey of Ruby Standard library at RubyKaigi 2024
Long journey of Ruby Standard library at RubyKaigi 2024Long journey of Ruby Standard library at RubyKaigi 2024
Long journey of Ruby Standard library at RubyKaigi 2024
 
Secure Zero Touch enabled Edge compute with Dell NativeEdge via FDO _ Brad at...
Secure Zero Touch enabled Edge compute with Dell NativeEdge via FDO _ Brad at...Secure Zero Touch enabled Edge compute with Dell NativeEdge via FDO _ Brad at...
Secure Zero Touch enabled Edge compute with Dell NativeEdge via FDO _ Brad at...
 
Using IESVE for Room Loads Analysis - UK & Ireland
Using IESVE for Room Loads Analysis - UK & IrelandUsing IESVE for Room Loads Analysis - UK & Ireland
Using IESVE for Room Loads Analysis - UK & Ireland
 
Your enemies use GenAI too - staying ahead of fraud with Neo4j
Your enemies use GenAI too - staying ahead of fraud with Neo4jYour enemies use GenAI too - staying ahead of fraud with Neo4j
Your enemies use GenAI too - staying ahead of fraud with Neo4j
 
Behind the Scenes From the Manager's Chair: Decoding the Secrets of Successfu...
Behind the Scenes From the Manager's Chair: Decoding the Secrets of Successfu...Behind the Scenes From the Manager's Chair: Decoding the Secrets of Successfu...
Behind the Scenes From the Manager's Chair: Decoding the Secrets of Successfu...
 
Designing for Hardware Accessibility at Comcast
Designing for Hardware Accessibility at ComcastDesigning for Hardware Accessibility at Comcast
Designing for Hardware Accessibility at Comcast
 
Extensible Python: Robustness through Addition - PyCon 2024
Extensible Python: Robustness through Addition - PyCon 2024Extensible Python: Robustness through Addition - PyCon 2024
Extensible Python: Robustness through Addition - PyCon 2024
 

Develop & Deploy your Laravel Application on Google Cloud Platforms

  • 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)
  • 6. ❖ 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
  • 7. 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
  • 8. 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)
  • 10. Talk is cheap! Let's get our hands dirty… See code at [https://github.com/codeInBit/Google-IO-Ext ended-Ibadan]
  • 12. 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.
  • 13. 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…..
  • 14. Now we need to deploy your Laravel Application on Cloud
  • 15. Requirement ❖ Create a project in the Google Cloud Platform Console (Note you Project ID) ❖ Enable billing for your project. ❖ Install the Google Cloud SDK.
  • 16. Deploy ❖ Create an app.yaml file with the following contents in your laravel project:
  • 17. 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.
  • 19. 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