Тёмный

Google Apps Script WEB APP with React JS and Router Tutorial 

Get __it Done!
Подписаться 11 тыс.
Просмотров 21 тыс.
50% 1

Learn how to setup Google Apps Script Web App with React JS and Router using CLASP & Parcel JS.
Links from this tutorial:
github.com/goo...
github.com/goo...
parceljs.org/
reactrouter.com/
Other software used:
nodejs.org/en/
code.visualstu...
How to Install NodeJS & VSCode
• Install Node JS & Visu...
How to use CLASP
• Develop Google Apps Sc...
#appsscript #webapp #clasp #parceljs

Опубликовано:

 

15 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 95   
@getitdonetube
@getitdonetube 2 года назад
React JS Series ru-vid.com/group/PLRmEk9smitaUg1eDmUKgCeJD9IavqurZ- CLASP ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-lwxiEB-Mnys.html
@pedroforesterdasilva
@pedroforesterdasilva 2 года назад
This is absolutely amazing and exactly what I was looking for. Been a huge follower of all your "Learn Google Speadsheets", but I'm just now discovering this channel.
@getitdonetube
@getitdonetube 2 года назад
:)
@mouricefargose
@mouricefargose 5 месяцев назад
Great video! Thanks for the clear tutorial on using Google Apps Script with React JS and Router. It's really helpful to see this kind of integration in action. I'm curious, do you think similar functionality could be achieved using NextJS without SSR? Would love to see a tutorial on that if it's possible. Keep up the awesome work!
@ЖасурбекТаиров
Wow!!! Thank you very much! I was struggling for a long time with including additional libraries and frameworks into Apps Script
@getitdonetube
@getitdonetube Год назад
👍
@DivitKalem
@DivitKalem 2 года назад
Oh aren't you the Learn Google Spreadsheets guy? :) What a great video. Well done. Thanks a lot. First time seeing this channel. Subscribed.
@getitdonetube
@getitdonetube 2 года назад
Yea, same guy :)
@GusTheAnt
@GusTheAnt 3 месяца назад
23:00 Important note for anyone following this in May 2024, Parcel v2.12.0 requires a named import for React DOM in index.js. Your import statements at the top in `index.js` should look like this, otherwise when you run `npm start` you will not see anything in your browser window. import { createRoot } from "react-dom/client" import App from "./App"
@getitdonetube
@getitdonetube 2 месяца назад
Thank You!
@bang-naim
@bang-naim 2 года назад
My head is blown away by the quality of your tutorial man.. never thought this was possible in Google Apps Script.. So it's possible to build full stack app in Google Spreadsheet alone yeah? Would you do follow-up videos on styling? I'd love to watch them, hell, I'd pay for them. You are one awesome teacher my dude.
@getitdonetube
@getitdonetube 2 года назад
I'm not sure what you mean by "videos on styling".
@bang-naim
@bang-naim 2 года назад
@@getitdonetube Styling as in making the navbar looks great, for example.. i saw in another RU-vidrs videos, they were using boostrap or some sort of css tag. I'm sorry, I don't understand the exact term either..
@andyedwards3850
@andyedwards3850 2 года назад
This is awesome! You are so good at clearly communicating how to do these things! Would you be able to show a similar setup for VUE JS (3)? Thank you for all your great work!
@getitdonetube
@getitdonetube 2 года назад
I haven't used Vue for a very long time, but I think the setup would be exactly the same if you use ParcelJS to compile it.
@andyedwards3850
@andyedwards3850 2 года назад
@@getitdonetube I have decided to invest more time learning React.
@SorryStamin
@SorryStamin Год назад
@@andyedwards3850 I figure as long as you're bundling this together it will work, was going to try it with svelte tomorrow, will report back
@ryanschaefer4847
@ryanschaefer4847 Год назад
@@SorryStamin how'd it go?
@SorryStamin
@SorryStamin Год назад
@@ryanschaefer4847 ended up using vite and finding a plugin to put the compiled JavaScript and CSS into the index.html, Im sure parcel would work but I know vite much more and was able to handle a few of the problems I ran into better
@davidsalomonmartinezvallad3543
It's amazing, is it possible you can dig deeper on using backend functions in the React App?
@ijkl8888
@ijkl8888 2 года назад
Hi, how to use google spreadsheet data as the backend data source for this React JS webapp example? Hope you could consider making this additional tutorial.
@getitdonetube
@getitdonetube 2 года назад
just use google.script.run the same way you do in a plain javascript file.
@KuldeepSingh-fg4wn
@KuldeepSingh-fg4wn 2 года назад
@@getitdonetube but not file upload vani js send file upload to drive but somehow not react js any help???
@user-xx8eg4yi3l
@user-xx8eg4yi3l 9 месяцев назад
Teacher! I have made many web apps with apps script thanks to your videos. But a few hous ago, suddenly it shows this error in console. This document requires 'TrustedHTML' assignment. Uncaught TypeError: Failed to set the 'innerHTML' property on 'Element': This document requires 'TrustedHTML' assignment. and it stops. Is it something that Google changed its policy? I need urgent help. Please can you help me out?
@plinioglad
@plinioglad 5 месяцев назад
Excellent tutorial!!! Congratulations! Could you make a tutorial using VITE JS? 👏👏👏👏
@autozone5335
@autozone5335 2 года назад
Awesome tutorial. Thank you!
@getitdonetube
@getitdonetube 2 года назад
Thank You!
@SnooniSnoo
@SnooniSnoo 9 месяцев назад
import { createRoot } from "react-dom/client" import App from "./App" const container = document.getElementById("app") const root = createRoot(container) root.render() Hi, in the latest parcel doc, the react docs gave this instead, i followed the steps but once i created App.js under src folder, it underlines "./Apps" as error in index.js
@nbarton11
@nbarton11 3 месяца назад
Curious- will a public folder for image assets be compiled if it is outside of the src folder with parcel
@imnoodlehaus
@imnoodlehaus Год назад
Thank you very much. Exactly the video I needed.
@thomasdinh6489
@thomasdinh6489 2 года назад
In his previous video for cloning the project he used --rootDir ./src instead of ./apps-script on this one. For anyone who did the cloning from prior video it is important to change the rootDir for it to work.
@getitdonetube
@getitdonetube 2 года назад
👍
@DanteDerette
@DanteDerette 10 месяцев назад
what is this app that makes your cursors grow bigger for some seconds and then go back normal again ?
@jademarthytulda1839
@jademarthytulda1839 2 года назад
Hi! I have tried to use VueJS 3 and Parcel JS to implement this kind of thing, but the problem is, when it gets pushed to GAS, it will just display a blank page and an error in console like this: "Uncaught SyntaxError: missing ) after argument list userCodeAppPanel:5486" Hope you can help me. Thanks!
@nandinipanchani3717
@nandinipanchani3717 11 месяцев назад
I followed all steps still not getting CSS working in Google script app but my localhost working what could be the reason?
@davidfernandezbajo
@davidfernandezbajo 2 года назад
Never thought this could be done! 👍
@drivebuss8079
@drivebuss8079 Год назад
would have been good if you showed us how to setup tailwindcss
@ianpropst-campbell6028
@ianpropst-campbell6028 Год назад
This was a great tutorial! What I would like to do would be to clasp push code either to a different script project, or multiple script projects at the same time. Is there a way to do that?
@drivebuss8079
@drivebuss8079 Год назад
how can i access google function in the frontend react js
@learnmakeit9315
@learnmakeit9315 Год назад
Thank you so much!
@getitdonetube
@getitdonetube Год назад
👍
@KuldeepSingh-fg4wn
@KuldeepSingh-fg4wn 2 года назад
what about file upload method my all string entry going into sheet but somehow only uploaded file path going into sheet as string how to upload files using react with apps script its working with vanilla js but not react js why? any inside
@getitdonetube
@getitdonetube 2 года назад
Generally speaking, anything you can do with vanilla js you can also do with react. I'm not sure exactly what you're doing that doesn't work. But worst case you can always string encode the file and send it as string and then convert it back to a file on the server side.
@KuldeepSingh-fg4wn
@KuldeepSingh-fg4wn 2 года назад
@@getitdonetube yes i agree apprach will change in react thats the way i finding out.... thanks for the revert by the way.... hope i will figure out how to do that
@Magamb4ever
@Magamb4ever 11 месяцев назад
Very helpfull. Thanks a lot
@lordAlpargata
@lordAlpargata Год назад
Hello! I'm trying to upload an app to appscript, I'm using tailwind and in local works fine, but when I upload to google it shows blank, what could it be? 😢
@getitdonetube
@getitdonetube Год назад
Look at your build files and see what they look likr. Did you generate one HTML file for everything?
@lordAlpargata
@lordAlpargata Год назад
@@getitdonetube thanks for your reply, the thing is now we have react router v6.4 and changes some things, now im learning this new router, thanks anyways!!
@riteshpandey888
@riteshpandey888 Год назад
sir, clasp create not able to create file name 'React Test Project', instead just creating 'React
@getitdonetube
@getitdonetube Год назад
Don't use spaces.
@benjaminbrl
@benjaminbrl 2 года назад
Great video ! Can u make autofill for website video ??
@oniadrian
@oniadrian 2 года назад
Thank you for this tutorial! I have one issue though. When i update the react app, the changes are pushed to apps script but the dev link disappears. So the only way I can see the changes on the web side of things, is to re-deploy a new version of the app every time. For some reason after the changes are pushed, the dev link gets deleted, not sure if this is a new bug in apps script.
@getitdonetube
@getitdonetube 2 года назад
I haven't encountered this. Maybe it's something new. Make sure you have the right dev link.
@nicholasgoh7509
@nicholasgoh7509 2 года назад
I have the similar issue. After the code is pushed, the dev link could not work.
@royfeintuch4856
@royfeintuch4856 Год назад
He mentioned it in the begining of the vid. After you do the deployment settings in GAS, you need to sync/pull the project from G to your local computer. Otherwise you keep deleting the web app deployment config / dev link
@reubenmarkgorda3518
@reubenmarkgorda3518 2 года назад
Wow! This is a game changer
@edsonestevao1861
@edsonestevao1861 2 года назад
Teacher how to make crud? with sheet google
@Cereales89Nico
@Cereales89Nico Год назад
Hi, sorry, could you make a tutorial how to use tailwindcss and ant desing with react in a proyect and push it to google apps script?
@Cereales89Nico
@Cereales89Nico Год назад
with parcel or another tool for compile it
@LuizaCarvalho-do6hh
@LuizaCarvalho-do6hh Год назад
Tried following this, but my build script generates a bunch of weird partial files like "index.88584e4c.js.33620.1" or "index.html.33620"
@alexyershov6554
@alexyershov6554 2 года назад
Hi! I followed your tutorial and it is great! I'm currently writing an addon for Gmail using react and wanted to ask you a question. I successfully generated an HTML file from my react using parcel, now I wish to include this HTML code in my card that's located in my doGet() function. The problem is, it doesn't let me include any code that's in a tag. How do I overcome this problem? At the moment I'm just trying to write "hello world" using react in a Gmail addon card.
@getitdonetube
@getitdonetube 2 года назад
React generates HTML, so card interface wouldn't work here.
@battlebear
@battlebear Год назад
Thank you so much.
@bterrell11
@bterrell11 2 года назад
what is the oldest version of Node JS this will work on if we can not upgrade?
@getitdonetube
@getitdonetube 2 года назад
It think if it supports ECMAScript modules it should be fine, but it's impossible to tell for sure without testing. I believe even though it's not supported by default it's possible to enable them starting version v14.1. Full support starts from v16 if I'm not mistaken.
@bterrell11
@bterrell11 2 года назад
@@getitdonetube thanks. I am on 14.4 and going through it now. No issues so far. This is a game changer!
@getitdonetube
@getitdonetube 2 года назад
Cool!
@jimtse2145
@jimtse2145 3 месяца назад
Thanks!
@getitdonetube
@getitdonetube 2 месяца назад
Thank You!
@fttx6673
@fttx6673 2 года назад
Hello, is it possible to do RTC React with Google text editor
@getitdonetube
@getitdonetube 2 года назад
Technically yes, but the whole point of react is code splitting which you won't be able to do without a compiler.
@rakibulhasan8654
@rakibulhasan8654 2 года назад
Man you are awesome
@HimanshuGogoi
@HimanshuGogoi 2 года назад
Hi, can we use functions such as google.script.run within the react frontend?
@getitdonetube
@getitdonetube 2 года назад
Yes, of course.
@paapipirate8499
@paapipirate8499 2 года назад
hey! were you able to run google.script.run from react frontend? Can you tell me how?
@davidpedrero7118
@davidpedrero7118 7 месяцев назад
Hello google.script.run works fine but you will have to view your changes from the dev URL on GAS. localhost won't work since the google api is not defined
@KuldeepSingh-pl7rv
@KuldeepSingh-pl7rv 2 года назад
how to add bootstrap CDN in this ?
@getitdonetube
@getitdonetube 2 года назад
If you want CDN, you should be able to just add the link to CDN in HTML file. OR you can install via npm and use bootstrap locally.
@diprojitmondal1834
@diprojitmondal1834 2 года назад
Sir how to overcome initial fear to learn new technologies ? Deep respect for you from INDIA
@getitdonetube
@getitdonetube 2 года назад
Do it for fun instead of having a set goal.
@guslares84
@guslares84 2 года назад
Hello! great video! It's possible use jwt in Google app script?
@getitdonetube
@getitdonetube 2 года назад
Sure, but you have to encode and decode the token yourself.
@getitdonetube
@getitdonetube 2 года назад
The biggest issue with apps script is that you can't post headers with requests and get those headers in your script.
@shuxiaokai
@shuxiaokai 2 года назад
Good 😊😊😊😊
@waddkara
@waddkara 2 года назад
React with router in gap
@arupde6320
@arupde6320 2 года назад
be regular .
@mbeducation8352
@mbeducation8352 2 года назад
Hi, thanks so much for this tutorial. I tried to follow it to the letter but when I run the npm start command I get the following error. I am really stuck with it. Please help! Error: Cannot find module './artifacts/index.win32-ia32-msvc.node' I hope this will shed some light: PS C:\Users\mbenb\Desktop\webAppReact> npm start > webappreact@1.0.0 start > parcel src/index.html --dist-dir ./apps-script Error: Cannot find module './artifacts/index.win32-ia32-msvc.node' Require stack: - C:\Users\mbenb\Desktop\webAppReact ode_modules\@parcel\source-map\parcel_sourcemap_node\index.js - C:\Users\mbenb\Desktop\webAppReact ode_modules\@parcel\source-map\dist ode.js - C:\Users\mbenb\Desktop\webAppReact ode_modules\@parcel\utils\lib\index.js - C:\Users\mbenb\Desktop\webAppReact ode_modules\@parcel\core\lib\public\Config.js - C:\Users\mbenb\Desktop\webAppReact ode_modules\@parcel\core\lib\utils.js - C:\Users\mbenb\Desktop\webAppReact ode_modules\@parcel\core\lib\public\Environment.js - C:\Users\mbenb\Desktop\webAppReact ode_modules\@parcel\core\lib\public\Asset.js - C:\Users\mbenb\Desktop\webAppReact ode_modules\@parcel\core\lib\Parcel.js - C:\Users\mbenb\Desktop\webAppReact ode_modules\@parcel\core\lib\index.js - C:\Users\mbenb\Desktop\webAppReact ode_modules\parcel\lib\cli.js - C:\Users\mbenb\Desktop\webAppReact ode_modules\parcel\lib\bin.js at Function.Module._resolveFilename (node:internal/modules/cjs/loader:933:15) at Function.Module._load (node:internal/modules/cjs/loader:778:27) at Module.require (node:internal/modules/cjs/loader:1005:19) at require (C:\Users\mbenb\Desktop\webAppReact ode_modules\v8-compile-cache\v8-compile-cache.js:159:20) at Object. (C:\Users\mbenb\Desktop\webAppReact ode_modules\@parcel\source-map\parcel_sourcemap_node\index.js:15:18) at Module._compile (C:\Users\mbenb\Desktop\webAppReact ode_modules\v8-compile-cache\v8-compile-cache.js:192:30) at Object.Module._extensions..js (node:internal/modules/cjs/loader:1155:10) at Module.load (node:internal/modules/cjs/loader:981:32) at Function.Module._load (node:internal/modules/cjs/loader:822:12) at Module.require (node:internal/modules/cjs/loader:1005:19) { code: 'MODULE_NOT_FOUND', requireStack: [ 'C:\\Users\\mbenb\\Desktop\\webAppReact\ ode_modules\\@parcel\\source-map\\parcel_sourcemap_node\\index.js', 'C:\\Users\\mbenb\\Desktop\\webAppReact\ ode_modules\\@parcel\\source-map\\dist\ ode.js', 'C:\\Users\\mbenb\\Desktop\\webAppReact\ ode_modules\\@parcel\\utils\\lib\\index.js', 'C:\\Users\\mbenb\\Desktop\\webAppReact\ ode_modules\\@parcel\\core\\lib\\public\\Config.js', 'C:\\Users\\mbenb\\Desktop\\webAppReact\ ode_modules\\@parcel\\core\\lib\\utils.js', 'C:\\Users\\mbenb\\Desktop\\webAppReact\ ode_modules\\@parcel\\core\\lib\\public\\Environment.js', 'C:\\Users\\mbenb\\Desktop\\webAppReact\ ode_modules\\@parcel\\core\\lib\\public\\Asset.js', 'C:\\Users\\mbenb\\Desktop\\webAppReact\ ode_modules\\@parcel\\core\\lib\\Parcel.js', 'C:\\Users\\mbenb\\Desktop\\webAppReact\ ode_modules\\@parcel\\core\\lib\\index.js', 'C:\\Users\\mbenb\\Desktop\\webAppReact\ ode_modules\\parcel\\lib\\cli.js', 'C:\\Users\\mbenb\\Desktop\\webAppReact\ ode_modules\\parcel\\lib\\bin.js' ] }
@getitdonetube
@getitdonetube 2 года назад
try to download & install Microsoft Visual C++ Redistributable from Microsoft
@mbeducation8352
@mbeducation8352 2 года назад
@@getitdonetube Thanks for the reply. I have Microsoft Visual C++ 2015 - 2022 on my laptop. It's a new laptop.
@getitdonetube
@getitdonetube 2 года назад
Did you update your node version to 16?
@mbeducation8352
@mbeducation8352 2 года назад
@@getitdonetube Thanks again for your help. I have decided to restart from scratch and try to better understand the processes and learn about the tools. It's a great tutorial as are all your other ones. Thanks a lot for your effort and your help!
@diegognoatto8706
@diegognoatto8706 6 месяцев назад
just spent lots of time todaydoing the same with astro js appscript template generator, here is my astro config if someone want to try => import { defineConfig } from "astro/config"; import fs from "fs"; import path from "path"; export default defineConfig({ trailingSlash: "always", output: "static", build: { format: "file", redirects: true, inlineStylesheets: "always", client: "./thefolderofyourprojectwillbuild", }, onAfterBuild() { // Function to find the JavaScript file in the dist directory function findJsFile(directory) { const files = fs.readdirSync(directory); for (const file of files) { if (file.endsWith(".js") && file.startsWith("everything")) { return path.join(directory, file); } } return null; } // Function to find the CSS file in the dist directory function findCssFile(directory) { const files = fs.readdirSync(directory); for (const file of files) { if (file.endsWith(".css")) { return path.join(directory, file); } } return null; } // Read the bundled JavaScript file const jsDirectory = "./dist/_astro"; // Update this path according to your setup const jsFilePath = findJsFile(jsDirectory); if (!jsFilePath) { console.error("Failed to find the JavaScript file."); process.exit(1); } const jsContent = fs.readFileSync(jsFilePath, "utf8"); // Read the CSS file (if it exists) const cssDirectory = "./dist/_astro"; // Update this path according to your setup const cssFilePath = findCssFile(cssDirectory); const cssContent = cssFilePath ? fs.readFileSync(cssFilePath, "utf8") : ""; // Read the index.html file let indexContent = fs.readFileSync("./dist/index.html", "utf8"); // Update this path according to your setup // Replace placeholders with actual content indexContent = indexContent.replace( "", `${jsContent}` ); indexContent = indexContent.replace( "", `${cssContent}` ); // Write the updated content back to index.html fs.writeFileSync("./dist/index.html", indexContent, "utf8"); // Update this path according to your setup }, });
@mouricefargose
@mouricefargose 5 месяцев назад
Great video! Thanks for the clear tutorial on using Google Apps Script with React JS and Router. It's really helpful to see this kind of integration in action. I'm curious, do you think similar functionality could be achieved using NextJS without SSR? Would love to see a tutorial on that if it's possible. Keep up the awesome work!
Далее
МАМА И КОММУНАЛКА
00:59
Просмотров 119 тыс.
Web App - Google Sheets - Form Example
1:24:10
Просмотров 47 тыс.
Learn React In 30 Minutes
27:16
Просмотров 1,3 млн
Apps Script: CLASP and Parcel-bundler Wordcloud Project
28:44
Vite Crash Course | Faster Alternative To CRA
16:24
Просмотров 201 тыс.
МАМА И КОММУНАЛКА
00:59
Просмотров 119 тыс.