You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The basic idea is to host your application on a service designed for modern web apps, and then use the Google Sites "Embed" feature to display your live application on your page. It will appear as a seamless part of your site.
Step 1: Prepare Your Application for Production
First, your application code, written in TypeScript and JSX (.tsx), needs to be compiled and bundled into plain HTML, JavaScript, and CSS that web browsers can run directly. This is a standard process called "building" the application.
You would typically use a tool like Vite or Create React App to handle this. Since your project is already set up, this step would involve running a single command (like npm run build) which would create a dist or build folder containing the final, optimized files.
Step 2: Host Your Application on a Static Hosting Service
Next, you need to upload the contents of that dist folder to a web hosting service. There are many excellent, free services perfect for this:
Netlify: Extremely popular for its ease of use. You can often just drag and drop your dist folder to deploy your site in seconds. Vercel: Another fantastic, user-friendly option with a great free tier. GitHub: If your code is already in a GitHub repository, this is a very convenient and free way to host it.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
The basic idea is to host your application on a service designed for modern web apps, and then use the Google Sites "Embed" feature to display your live application on your page. It will appear as a seamless part of your site.
Step 1: Prepare Your Application for Production
First, your application code, written in TypeScript and JSX (.tsx), needs to be compiled and bundled into plain HTML, JavaScript, and CSS that web browsers can run directly. This is a standard process called "building" the application.
You would typically use a tool like Vite or Create React App to handle this. Since your project is already set up, this step would involve running a single command (like npm run build) which would create a dist or build folder containing the final, optimized files.
Step 2: Host Your Application on a Static Hosting Service
Next, you need to upload the contents of that dist folder to a web hosting service. There are many excellent, free services perfect for this:
Netlify: Extremely popular for its ease of use. You can often just drag and drop your dist folder to deploy your site in seconds.
Vercel: Another fantastic, user-friendly option with a great free tier.
GitHub: If your code is already in a GitHub repository, this is a very convenient and free way to host it.
When you deploy your site on one of these services, you will get a public URL, for example: https://your-entity-dir-app.netlify.app.
Step 3: Embed Your App into Your Google Site
This is the final and easiest step!
Go to your Google Site editor (this is mine): https://sites.google.com/view/dbugx
Beta Was this translation helpful? Give feedback.
All reactions