Your application is a static web app that can be hosted for free on several platforms.
Steps:
-
Create a GitHub account (if you don't have one): https://github.com
-
Create a new repository:
- Click on "New repository"
- Name it (e.g.,
gradientgen) - Choose "Public"
- Click on "Create repository"
-
Upload your files:
- Download GitHub Desktop: https://desktop.github.com
- Or use the following commands in your terminal:
cd "C:\Users\noega\Desktop\FreeTool1"
git init
git add .
git commit -m "First version"
git branch -M main
git remote add origin https://github.com/YOUR-NAME/gradientgen.git
git push -u origin main- Enable GitHub Pages:
- Go to your repository on GitHub
- Click on "Settings"
- In the left menu, click on "Pages"
- Under "Source", select "main" (or "master")
- Click on "Save"
- Your site will be available at:
https://YOUR-NAME.github.io/gradientgen
Steps:
- Go to Netlify: https://www.netlify.com
- Create a free account (with GitHub, Google, or email)
- Drag and drop your folder
FreeTool1onto the Netlify page - That's it! You get a URL immediately
Advantages:
- Custom URL (e.g.,
your-name.netlify.app) - Automatic deployment if you use Git
- Free HTTPS
- Very fast
Steps:
- Go to Vercel: https://vercel.com
- Create a free account
- Import your project (via GitHub or drag & drop)
- Deploy!
Steps:
- Go to Cloudflare Pages: https://pages.cloudflare.com
- Create a free account
- Connect your GitHub repository or upload manually
- Deploy!
Your application contains:
index.html- Main pagesketch.js- JavaScript code (now contains the embedded shader)styles.css- CSS stylesImage.frag- WebGL shader (optional, now embedded in sketch.js)BergenMono-Regular.otf- Font file
Important note: The Image.frag shader is now embedded directly in sketch.js to avoid CORS issues when opening locally (file://). The application now works even if you simply open the HTML file in your browser without a web server!
All these files must be in the same folder at the root.
To update your site:
GitHub Pages:
- Modify your files locally
- Commit and push to GitHub
- The site updates automatically in a few minutes
Netlify/Vercel:
- If connected to GitHub: automatic push
- Otherwise: drag and drop your updated folder again
Once deployed, you can share the URL with anyone!
For a custom domain name (optional, free on some services):
- Netlify and Vercel allow you to add a custom domain for free
- You can also use a free subdomain on Freenom