Setting up Stackdriver on GAE running nodeJS - node.js

I'm trying to find some docs on setting up Stackdriver for nodeJS running on App Engine. The docs don't appear to provide it
https://cloud.google.com/debugger/docs/
However, did see a video where Stackdriver (or some other way of debugging) was being used for a node based app.
https://youtu.be/jsznS0QxtYI?t=25m12s
Any links to docs / tutorials appreciated

We're working on getting better documentation for this one very soon. For now, the best instructions are over on the GitHub repo readme:
https://github.com/GoogleCloudPlatform/cloud-debug-nodejs
Let me know if you have any trouble!

Related

Is is possible to make Desktop App with Nodejs along with Online connectivity

I am trying build an application that can run offline and online too. If the application is offline it must run with minimum functionality and if it get an internet it automatically push data online Any references or tutorials would be appreciated.
any references that can help me to achieve this.
Yes, surely that's possible and you already mentioned the tools: node.js and electron are suitable. Most electron apps do that (whatsapp and joplin directly come to my mind).
You can look in the source of those already available apps, but it might be difficult. I would start with the tutorial of electron and search for the features as "check internet connectivity" (i.e. here on stackoverflow)
Your question is a bit to broadly stated to help in detail.
Yes, surely that's possible. you can use the node.js and electronJs with Angular are suitable.
For Angular and NodeJs refer the below document:
Build a Basic CRUD App with Angular and Node
For ElectronJs refer the below demo project:
Electron Samples
Best luck !!

IBM Natural Language Processing Projects (Beginner getting started question)

I've been digging into the IBM Cloud Services, Watson and NLP. Just installed the CLI and tried with Node SDKs, and a starterkit, unfortunately I did not succeed by trying to get a sample code by default to understand how it works.
After that, I did some research get a better open minded approach to how actually I could use some of their free services to get started, but there's actually to vague information, even though the IBM Docs are pretty extensive and well written, it can get very confusing.
I would appreciate any open source repo, or working/live project that you are willing to share to make a better image in my mind about it IBM cloud services.
A few days ago I wrote a sample application using the Natural Language Understanding service. Check the source code here: https://github.com/watson-developer-cloud/natural-language-understanding-code-pattern
The README has instructions on how to get the apikey which is the way you will use to authenticate your API calls.
Since you are using Node.js you can start with the sample above and also look at this page: https://cloud.ibm.com/apidocs/natural-language-understanding/natural-language-understanding?code=node which includes examples for all the features in Node.js using the node-sdk: https://github.com/watson-developer-cloud/node-sdk/

how to do firebase-authentication with next.js

I am getting so much problem in creating a next.js app with express and firebase-authentication and what is the use of redux here.can anyone Please Help in this stuff or provide some tutorials because next.js documentation is not worthy and examples are too not worthy.
The example with-firebase-authentication in the NextJs examples folder is not working right now:
See my bug report: with-firebase-example-not-working
I'm trying to do this using service-workers since it's supported by Firebase:
firebase-docs-to-service-workers
I've been looking at a NextJS example with service-workers:
nextjs-example-with-sw
But I found that the sw-precache webpack plugin is deprecated by Google and they recommend to migrate to the sw-toolbox see here: google-sw-toolbox
But have in mind that this adds an overhead of sw configuration and registering/un-registering as well as the scope on the sw in your app.
To learn more about service workers check google-dev-docs

Can I deploy a slug to heroku without including the runtime

I'm trying to follow this https://devcenter.heroku.com/articles/platform-api-deploying-slugs?preview=1 to create a slug of my node app and deploy to heroku. Given that heroku has a nodejs buildpack built into it I can't help thinking there must be a way to do so without including the node runtime as recommended, but it's not easy to find out how in the platform api docs.
Anyone have an ideas?
you can also create slugs programmatically using the Build API. See these guides
Building and Releasing using the Platform API
Programmatic builds on Heroku
This is also mentioned in the intro to the article you mentioned, but I'll make that clearer.
Feel free to get in touch at friis#heroku.com if you have any questions about how to use this.

How Do I Set Up The MEAN (Mongo, Express, Angular & Node) stack on Nitrous.IO

I using the upcoming weekend to check two things off of my 2013 project list:
Give Cloud Development A Try
Try ANGULAR.JS
My game plan is to set up the MEAN stack on Nitrous.IO and then use the stack to complete one of the many Angularjs tutorial projects available online.
Questions:
I'd be interested in hearing if anyone has set up the MEAN stack on Nitrous or otherwise or if anyone is aware of any good blog post that go through the process for someone with little to no javascript development experience.
Also, if you have setup a MEAN stack are there any things you would do differently or are there any invaluable resources I should be aware of.
Some Resources I Found Useful:
I've been researching online for the past week and have uncovered some great resources, but it would be great to see what others have found or can suggest. Below are some links to some resources that I have come across that may be helpful to others:
Building Angular Start-up Stack - Toronto Meetup Stream
Egghead.io Offers some great Video tutorials on Angular
Google's Angular site has a wealth of info.
USC Linux User Group Youtube video on MEAN on Amazon AWS
Thanks in advance for any resources, insights or guidance.
Since you are starting on JavaScript I would suggest that you start simple. For example
Build a simple web site with Node.js and Express (no Angular, no Mongo).
Deploy it to the cloud.
Then add Angular and see how the structure changes when you use an MVC framework on the client side (e.g. your backend becomes a plain REST API).
Then, play with Node.js and Mongo probably outside your simple Node/Express/Angular app to get the hand of a NoSQL database and database access from Node.js (the fact that everything is async brings some interesting challenges for beginners)
Then integrate Mongo into your app.
Ok, here's how I successfully set-up the MEAN stack on Nitrous.IO.
First, many thanks to Valeri V. Karpov and his The Code Barbarian blog. In July he had a blog post titled Introduction to the MEAN Stack, Part One: Setting Up Your Tools. I primarily followed his article, only making adjustment dictated by the Nitrous cloud platform.
So here are the steps:
Create A Nitrous Box: Go to the Nitrous site and sign-up for an account. Please note the free account does not provide enough storage to accommodate the full MEAN Stack. You'll need at least a "Start" pricing plan - at $9.99 per month.
Create A Nodejs Box: Once you complete your registration and select a pricing plan, its time to create a Nodejs box. Follow the instructions on the Nitrous site. The box comes preconfigured Nodejs.
Install Mongodb: To install Mongodb on your box, go to the shell prompt and type: parts install mongodb You can confirm the installation was successful by typing parts start mongodb. To stop the mongodb server you type parts stop mongodb.
Confirm your Node & NPM Installations: Type node at the command prompt. You should see a > sign if node is installed correctly. You are now in the node shell. Type control-c to exit the shell. Type NPM at the prompt and you should see some usage information
Install Express: type npm install express -g The -g flag means the package will be installed so you can run it from the terminal. Note, if you are using the free box you will likely encounter errors during the Express installation as a result of you exceeded the allocated storage.
From here on you can follow Valeri's article at Step 4 Creating an ExpressJS application..
Good luck and enjoy.
Use Bitnami https://bitnami.com/stack/mean. I like it a lot, pretty simple and concise. In my case it was for Windows and it was a seamless experience

Resources