Coder Social home page Coder Social logo

karkranikhil / google-cloud-hosting-demo Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 32.68 MB

In this i will demonstrate the hosting of the static application to the gcloud

Home Page: https://nikhilkarkra-217807.appspot.com/

CSS 20.18% JavaScript 22.70% HTML 57.12%

google-cloud-hosting-demo's Introduction

Google-cloud-hosting-demo

Step 1 - Creating a Google Cloud Platform project

To use Google's cloud for your own site or app, you need to create a new project on Google Cloud Platform. This requires having a Google account.

  • Go to the App Engine dashboardon the Google Cloud Platform Console and press the Create button.
  • If you already have a project use it or otherwise create the project.
  • If you are creating new, Enter a name for the project, edit your project ID. For this tutorial, the following values are used:
  • Project Name: nikhilkarkra
  • Project ID: nikhilkarkra-217807
  • Click the Create button to create your project

step 2 - Application structure

  • The website folder(You can give any name to the folder) contains your website content
  • app.yaml is your application configuration file.
  • Landing page must be called index.html inside website
  • The app.yaml file is a configuration file that tells App Engine how to map URLs to your static files.

step 3 - Install & Deploy with Google Cloud SDK

  • Use the below link to download gcloud sdk based on your OS. (I am using mac)
  • https://cloud.google.com/sdk/docs/downloads-interactive
    
  • Mac user just write below command in terminal
  • curl https://sdk.cloud.google.com | bash
    
  • After successfull completion, run the below command to check the installed verion
  • gcloud -v
    
  • Go inside the folder - in our case its
  • cd Google-cloud-hosting-demo
    
  • Initialize the project by running the b below command
  • gcloud init
    
  • Run the below command to deploy
  • gcloud app deploy
    
  • As soon as deployment is done, you can run your app in the browser using following command.
  • My deployment has done for the below URL
  • https://nikhilkarkra-217807.appspot.com/
    
References

MDN web docs

Medium

google-cloud-hosting-demo's People

Contributors

karkranikhil avatar

Watchers

James Cloos avatar  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.