Creating a REST API with Node.js and MySQL

Поделиться
HTML-код
  • Опубликовано: 22 окт 2024

Комментарии • 40

  • @googlecloudtech
    @googlecloudtech  3 года назад +1

    Tune into our #AskGoogleCloud premiere on Friday, March 12 10AM PT for a chance to ask Google Cloud’s serverless experts any questions regarding serverless architectures → goo.gle/30wuOy2
    Get $300 and start running workloads for free → goo.gle/3riRU75

  • @guillaumeblaquiere
    @guillaumeblaquiere 3 года назад +16

    Great example on Cloud Run, but in the development loops, it's important to show how to test locally with the database and then how to deploy in the cloud.

    • @MartinOmander
      @MartinOmander 3 года назад +4

      You're right, Guillaume! I'm adding "local development" to our list of episode ideas.

    • @guillaumeblaquiere
      @guillaumeblaquiere 3 года назад +1

      @@MartinOmander it's maybe not in "serverless expedition" series, but' it's important to secure and get trust from developers. In addition, you have awesome Cloud Code tools and having a hand on video series on it is a "must-have"!

    • @MartinOmander
      @MartinOmander 3 года назад +1

      @@guillaumeblaquiere Agreed, Cloud Code is a great VS Code extension for Cloud Run development! We will publish a video about it in late March.

  • @VinayNair415
    @VinayNair415 3 года назад +6

    Such a refreshing theme to start off a technical video! Great job Google! :)

  • @derekchin8984
    @derekchin8984 3 года назад +4

    I'm getting the following error:
    "Error: connect ENOENT /cloudsql/
    at PipeConnectWrap.afterConnect [as oncomplete] (node:net:1142:16)" from my nodejs application when it attempts to connect to CloudSql. The API is enabled.

  • @brandonliralizarraga9809
    @brandonliralizarraga9809 3 года назад +6

    Nice explanation, clear and direct to the point.

  • @madhank93
    @madhank93 3 года назад +4

    I am loving this series

    • @TheMomander
      @TheMomander 2 года назад

      Happy to hear it's useful to you!

  • @adrienneparks9791
    @adrienneparks9791 2 года назад +2

    What's the life expectancy of a chihuahua? How about a Boston Terrier? A Dachshund? Asking for a friend :)

  • @purankotwalyoutub100
    @purankotwalyoutub100 3 года назад +3

    Well explained, can you come up with a another vlog, which shows how to authorise these endpoints ( basic auth, oauth2 client cred )

    • @MartinOmander
      @MartinOmander 3 года назад +2

      Hi Puran! You should check out ruclips.net/video/BPGpdwPRP6I/видео.html and ruclips.net/video/4HAbnin3nto/видео.html. Let us know if these help!

  • @nickroach6270
    @nickroach6270 3 года назад +1

    Great video, thank you! Well explained and a good level and pace for me (junior dev just starting out). That deploy script was a great little bit of bonus learning too

  • @derekchin8984
    @derekchin8984 3 года назад +3

    Can you please share the contents of the Dockerfile?

  • @yeeshupandey4015
    @yeeshupandey4015 3 года назад +2

    Please explain more about secrets manager.

  • @akin242002
    @akin242002 3 года назад +1

    I really like Cloud Shell for GCP. It is so easy to build basic things in it.

  • @guillaumeblaquiere
    @guillaumeblaquiere 3 года назад +1

    @Roger: next time that you talk about "dog breeds" can you also share a picture of it? I already have difficulties to remind me what is the dog breed in my native language (French), so with the english naming, I'm totally lost!!! Ok, I can search on Google, but just a quick pict could be better!

  • @muhammadarifbillah984
    @muhammadarifbillah984 2 года назад +2

    My nodejs app still can't connect to the MySql idk what I did wrong and it's driving me insane.

    • @muhammadarifbillah984
      @muhammadarifbillah984 2 года назад +1

      Rookie mistake, my credential.json didn't have an execute permission 😂😂😂

  • @StuartZiane
    @StuartZiane 3 года назад +1

    Very helpful! Thanks very much

  • @KevinBoutin
    @KevinBoutin 3 года назад +2

    So no vpc-connector was required for this cloud run code?

    • @SimonLaneSPL
      @SimonLaneSPL 3 года назад +1

      Public IP

    • @rogermartinez9626
      @rogermartinez9626 3 года назад +1

      The Cloud Run code is communicating with the Cloud SQL instance by the instance connection name - there's no VPC connector required for this example.

    • @KevinBoutin
      @KevinBoutin 3 года назад +1

      @@rogermartinez9626 Ok so if the database is not in the default network, then you would need a vpc connector?

    • @rogermartinez9626
      @rogermartinez9626 3 года назад +3

      In our example, since it's a managed CloudSQL instance without private IP connectivity configured, it's not in a particular VPC so no VPC connector is needed. You would need one if your CloudSQL instance has private IP connectivity enabled and you want to communicate with it via its IP address.

  • @wahabalemi251
    @wahabalemi251 2 года назад +2

    how can i download source code

  • @Mmustafa-v4j
    @Mmustafa-v4j 3 года назад

    Loved this! Thank you!!

  • @mdabdurrahman6899
    @mdabdurrahman6899 2 года назад

    Nice explanation

  • @surajkawale2763
    @surajkawale2763 3 года назад +2

    i got error while deploy`gcloud command not found `

    • @TheMomander
      @TheMomander 2 года назад

      Sounds like you need to install the gcloud command-line tool. Run a web search for "install gcloud" and you will find the download.

  • @aravindsirangu6613
    @aravindsirangu6613 3 года назад +1

    Can you please post the source code link here

  • @trkg-fact
    @trkg-fact Год назад +1

    it is not for beginner.

  • @vengateshm2122
    @vengateshm2122 3 года назад

    How to load test the get request here?

  • @etiennebruines467
    @etiennebruines467 3 года назад +1

    This database isn't exactly serverless, is it? The REST API is able to scale nicely from 0 to a lot, but the database wont scale automatically at all. Most importantly, it does not scale to 0. What I appreciate about serverless is its pay per use model. The database layer often makes that difficult.

    • @TheMomander
      @TheMomander 2 года назад

      That's correct, CloudSQL is not serverless. If you want a fully serverless database and you're fine with NoSQL, go with Firestore. If you need SQL and you want a more managed solution than CloudSQL, try out Spanner.

  • @hardwired66
    @hardwired66 3 года назад

    cool