storing data from react form to google sheets - node.js

Is it possible to make a React.js and Node.js registration form and store all the data in google sheet directly?
If yes can anyone suggest GitHub source code link or the procedure to do the same?
Other useful links are also appreciated.

Related

How to create google sheet document using nodejs

I am trying to create google sheet document using node js.
I found libraries only for reading and writing, not for create new one.
Can anyone help me, or recommend some way how can I do it?
You just need check it out here: https://www.npmjs.com/package/google-spreadsheet. I think you will find what you need.
In order to create a new Spreadsheet with Node.js you can either use Sheets API with the method create (the one I would recommend), this is an example of its implementation in Node.js or with Drive API with the method create.
Here is the quickstart guide for Sheets API for Node.js and this one is the quickstart guide for Drive API.

File uploading with NodeJs

I am currently creating an app using nodejs and reactjs and so far I have created user authentication. Now that the user is authenticated, I want them to be able to upload any type of file, view em and delete them. However, I am unsure of how to successfully complete this goal. Can anyone recommend any resources that can assist me?
you can use https://www.npmjs.com/package/multer library. it is effective library for upload files. I have an example in my github account. If you want, you look at https://github.com/serhatleventyavas/nodejs-multer-example

How to insert API data into Google Sheet/Doc

Is there a quick way to use web exposed APIs value in Google Sheet or Google Docs.
I've been researching a bit and I found Google Sheet API v4, but only applies to Google Sheet data or resources, not externals one in document.
EDIT: I don't want to develop a complete backend in Node nor Java (if possible), just a direct way to execute an script in Google Sheet/Doc, in order to get the data available.
Thanks!
The available "direct way" of operating on Google Docs or Google Sheets that's available is through Apps Scripts. For Sheets, there's Class Sheet and for Google Docs there's Document Service.

How to extract metadata & open graph info when paste a link?

I'm building a sort of sharing system where users can paste links and share with their friends.
I want to be able to extract information like title, description and images when the user pastes a link. Would be similar as Facebook or LinkedIn.
The system has a "sharebox" where the user write a comment and pastes a link. Before save it, I need to retrieve some metadata to complete the basic information about the link.
I'm building the system with ReactJS backed by a REST API in NodeJS.
Does anyone know about a package or library to do this?. Should be done in the Frontend, or needs interaction with the backend?.
Thanks.
There are several implementations for parsing Open Graph meta tags.
You could try one of the PHP libraries:
PHP Validator and Markup Generator
PHP Consumer
OpenGraphNode in PHP
Finally http://embed.ly/ did the trick for me!.

Making Google extension which can save to google drive

I looked thru the internet and didn't found a solution how to make this:
I want to make google extension which will use Google API or something to connect the extension to Google drive and create/update files there( i will need mostly plain text documents to store there arrays). i will need it only for personal use, so any hacks are also acceptable.
Have anyone done anything like this before? i just need the starting point.
I have made an example that is available on Github. It is available here. It transforms the some emails from GMails into PDFs stored in Drive.
You can reuse it, you simply need to copy the Drive part and not the GMail API part. The steps you'll need to follow are :
Use the Chrome identity API to retrieve an access token for the Drive API
Use the Drive API javascript client to upload your text files. The tricky part is to upload it properly, use the examples on the github project to see what the request should look like.

Resources