GithubHelp home page GithubHelp logo

branflake2267 / debugging-angular-appengine Goto Github PK

View Code? Open in Web Editor NEW
2.0 3.0 0.0 199 KB

Debugging and deploying Angular application to app engine.

Home Page: https://www.youtube.com/watch?v=oT9jTNL56S0

JavaScript 20.28% TypeScript 70.40% HTML 7.39% CSS 1.93%
debugging-with-brandondonnelson appengine angular travis-ci vscode

debugging-angular-appengine's Introduction

Debugging Angular with App Engine Hosting

Debugging Angular with Visual Studio Code hosted on App Engine.

Build Status

Debugging Angular as the Client & Express as the server

This covers debugging Angular as the client with Express as the web server, which will be hosted on App Engine.

Debugging Video Tutorial

Project Configuration

Setting Value
Purpose Debugging with VS Code using a simple Angular project
Client Angular application
Server Express web server
Client Framework Angular
Client Language TypeScript
Server Language JavaScript
Architecture npm/node
IDE Visual Studio Code
License GPL v3
Tutorial Youtube Tutorial

Generate Application

The app generation is based on https://angular.io/guide/setup-local.

  • Run npm install -g @angular/cli - Install the app generator CLI tool.
  • Run ng new client - Generate an application, I named it client.
  • Run cd client - Change directory to the app.
  • Run ng serve --open - Start the compiler, web server and open Chrome.

Debugging

  • From the project root, run npm install to download the libraries used in the client and server directories.

Debugging Server

Debugging Client

The client uses a proxy to the server. Proxy config reference.

Debugging with npm

  • From the ./server directory run npm start to start the express web server.
  • From the ./client directory run npm start to start the client compiler and angular debugging.

Deploy

The application is deployed to https://donnelson-sandbox.appspot.com.

Travis CI Deployent

  • .travis.yml deploys the application to GAE on master commits.

Manual Deployment

  • Run cd ./dist
  • Run gcloud app deploy

Init Reference

These are the instructions I used to generate angular and configure App Engine on GCP.

Generate Angular Application

The app generation is based on https://angular.io/guide/setup-local.

  • Run npm install -g @angular/cli - Install the app generator CLI tool.
  • Run ng new client - Generate an application, I named it client.
  • Run cd client - Change directory to the app.
  • Run ng serve --open - Start the compiler, web server and open Chrome.

Cloud Tools CLI Installation

  1. Sign up for Google Cloud Compute.
  2. Create a GCP project.
  3. Create an App Engine Application https://console.cloud.google.com/appengine/start.
    • This app is Node.js & a Standard App Engine deployment.
    • Download Cloud SDK CLI tools
    • Run gcloud init
  4. Create a service account for App Engine Admin for deployments.
    • And be sure you add the Cloud Build API permissions to the services account.
    • And turn on the Cloud API Dash for the project.
  5. Create an App Engine project in the console https://console.cloud.google.com/appengine.
    • After you create an app engine project, follow the App Engine getting strted instructions on how to install Cloud CLI.

app.yaml

app.yaml configures the App Engine web hosting service options. app.yaml reference

debugging-angular-appengine's People

Contributors

branflake2267 avatar

Stargazers

 avatar  avatar

Watchers

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