• Home
  • About Us
  • Contact Us
  • Disclaimer
  • Privacy Policy
Wednesday, June 3, 2026
newsaiworld
  • Home
  • Artificial Intelligence
  • ChatGPT
  • Data Science
  • Machine Learning
  • Crypto Coins
  • Contact Us
No Result
View All Result
  • Home
  • Artificial Intelligence
  • ChatGPT
  • Data Science
  • Machine Learning
  • Crypto Coins
  • Contact Us
No Result
View All Result
Morning News
No Result
View All Result
Home Machine Learning

From Native App to Public Web site in Minutes

Admin by Admin
June 3, 2026
in Machine Learning
0
Starline 1.jpg
0
SHARES
0
VIEWS
Share on FacebookShare on Twitter

READ ALSO

RAG Is Not Machine Studying, and the ML Toolkit Solves the Incorrect Drawback

Constructing Vector Similarity Search in PostgreSQL with pgvector


, I’ll present you 3 utterly free methods to shortly deploy a easy internet app so it’s publicly obtainable on the web. By “easy,” I imply a static internet app, i.e., one which has no database again finish, consumer accounts, or server-side logic.

Whereas this may appear a bit bit limiting, there’s nonetheless lots you are able to do with simply HTML, CSS and JavaScript.

For the reason that focus is on totally different deployment strategies, I received’t spend a lot time on the internet app itself.

I wished a small undertaking that was easy, however nonetheless actual sufficient to deploy and share. So I had Codex construct a browser sport, a easy House Invaders-style shooter which the agent determined to name Starline Defender.

The sport is straightforward to play. You progress a bit ship left and proper with the arrow keys, shoot incoming aliens utilizing the space-bar, conceal behind shields, lose lives once you get hit, and transfer via quicker waves because the rating climbs. It really works with keyboard controls on desktop and contact controls on cellular. I’ll depart hyperlinks to all three app URLs I deployed to on the finish, so you may play with them your self.

Right here is the immediate I used.

Create a easy internet app containing html, css and javascript that’s a easy area invaders sort sport

After round 16 minutes, Codex spat this out.

Labored for 16m 45s

I am going to construct this as a single self-contained HTML file with embedded CSS and 
JavaScript, utilizing canvas so it runs wherever with no construct step. I am going to preserve 
the present downloader file untouched and add a brand new sport web page.
I will embody the entire sport in a single file: canvas rendering, alien 
waves, shields, scoring, lives, ranges, keyboard controls, and on-screen 
controls for contact gadgets. After that I am going to open it regionally via the 
current localhost server and do a fast visible sanity verify.
Created 1 file

The sport file is in place. I am checking it via localhost now so we will 
catch clean canvas points, script errors, or format issues earlier than I hand it 
over.
Confirm sport web page

The web page masses over localhost. The browser's read-only web page verify could not 
examine canvas pixels instantly, so I am switching to a screenshot and 
console-log verify, which is the proper of sanity check for this 
canvas-heavy web page.
Screenshot sport

The screenshot discovered one format wrinkle: on a brief viewport the sport board 
shrinks however hugs the left facet, leaving useless area to the proper. I am centering 
and constraining the board dimensions so it seems to be intentional on each 
mobile-sized and desktop-sized panes.
Edited 1 file

I've patched the responsive sizing. I am reloading the web page now and doing 
one interplay cross: begin the sport, affirm the canvas updates, and verify 
that there aren't any console errors.
Confirm up to date sport
Carried out. I created the single-file SPA right here:
starline-defenders.html
You possibly can play it within the in-app browser at:
http://127.0.0.1:8765/starline-defenders.html

I additionally verified it masses, begins, renders the canvas, and has no browser 
console errors.

I examined the sport regionally, and it labored OK. So, now to deploy it to the online in order that the world can marvel at its awesomeness!

The deployment methods we’ll have a look at are:-

1. GitHub Pages
2. right here.now
3. Hugging Face Areas

To keep away from doubt, aside from being a consumer of those methods, I’ve no affiliation, affiliation or reference to any of the businesses talked about above.

Basic Pre-requisites

Most static hosts anticipate the homepage to be named index.html, so the very first thing to do is rename our file from starline-defenders.html. For this undertaking, that’s all we’d like, as all our property and code are on this one file.

Create an empty folder in your native system e.g starline-defenders/ and duplicate the index.html file there.

Methodology 1: Deploy with GitHub Pages

GitHub Pages is a traditional selection for small static websites and internet apps like this. In case your undertaking already lives in GitHub, that is often the only everlasting deployment.

GitHub Pages can serve HTML, CSS, JavaScript, pictures, and different static property instantly from a repository. For a one-file sport, like this, it’s all of the infrastructure you want.

What You Want

The conditions for the GitHub set up are:-

  • A GitHub account
  • Git Bash put in regionally
  • A public GitHub repository. That is important totally free deployment.

Step 1: Create a GitHub account

Go to https://github.com and click on the Join button on the high proper of the display.

Step 2: Set up the git bash app

Git, by way of its Bash command-line interface, allows you to work together with GitHub, e.g., copy recordsdata to repositories.

Get it by clicking:

https://git-scm.com/e book/en/v2/Getting-Began-Putting in-Git

and following the set up directions applicable to your native system.

Step 3: Create a New Repository

Log in to your GitHub account and create a brand new repository referred to as, for instance:

starline-defenders

Be sure it’s a public repository.

Step 4: Put your index.html file into the general public repository

You do this by opening the Git Bash command-line terminal, then altering listing to the native folder containing your index.html file. Now sort the next instructions into Git Bash.

git init
git config --global consumer.e mail "[email protected]"
git config --global consumer.identify "Your Identify"
git add index.html
git commit -m "Add area invaders sort sport"
git department -M major
git distant add origin https://github.com/YOUR_USERNAME/starline-defenders.git
git push -u origin major

Change `YOUR_USERNAME`together with your GitHub username.

Step 5: Allow GitHub Pages

Open the brand new repository on GitHub, then:

1. Go to Settings.
2. Open Pages within the left sidebar.
3. Underneath Construct and deployment, select Deploy from a department.
4. Set the supply department to `major`.
5. Set the folder to `/root`.
6. Click on Save.

GitHub will begin publishing the location. It often takes a minute or two, and your closing URL will seem like this:

https://YOUR_USERNAME.github.io/starline-defenders/

FYI, if that you must make modifications to your internet app sooner or later, simply make the required modifications to your native index.html file, commit it and push once more:

git add index.html
git commit -m "Replace sport"
git push

Your up to date app will redeploy robotically.

Methodology 2: Deploy utilizing right here.now

right here.now’s a service constructed for publishing static websites and recordsdata shortly. It could host HTML, CSS, JavaScript, pictures, paperwork, and different static recordsdata at a reside `*.right here.now` URL. Though right here.now’s constructed for agentic entry, you can even interface with it manually, which is what I’ll present right here.

There are two methods you may publish to right here.now. Each are free. The primary technique is named nameless mode and requires no sign-up or registration. On this mode, right here.now will host your app at a brief URL for twenty-four hours. 

For a everlasting right here.now URL, which is what we’ll use, that you must publish with an API key.

The circulation is:

  1. Join/in at right here.now
  2. Receive an API key
  3. Reserve it regionally
  4. Run command-line scripts to publish the app
  5. The returned URL is everlasting in your account

The conditions for the right here.now deployment are:-

  • A right here.now account
  • A right here.now API key

Step 1: Signal as much as right here.now

Click on right here.now/dashboard and use the Signal In button on the high proper of the display. 

You’ll obtain a hyperlink in your e mail to click on, which is able to log you in to right here.now correctly.

Step 2: Get an API key 

When you’re logged in, there will probably be an API hyperlink on the left-hand menu bar. Click on that, then copy the generated key to your clipboard.

Step 3: Publish your web site

On a Home windows PC just like the one I’m utilizing, publishing your app entails working some PowerShell instructions. There’s an analogous course of for Linux and different working system customers.

# Create a folder to carry your API key if required
#
New-Merchandise -ItemType Listing -Pressure "$env:USERPROFILE.herenow" | Out-Null

# Save the API key
#
Set-Content material "$env:USERPROFILE.herenowstarlinedefenders-credentials" "YOUR_API_KEY"
# publish the online app
#

cd "$env:USERPROFILEprojectsstarlinedefenders"

$apiKey = Get-Content material "$env:USERPROFILE.herenowstarlinedefenders-credentials" -Uncooked
$file = Get-Merchandise ".index.html"

$physique = @{
  recordsdata = @(
    @{
      path = "index.html"
      dimension = $file.Size
      contentType = "textual content/html; charset=utf-8"
    }
  )
  spaMode = $true
} | ConvertTo-Json -Depth 5

$create = Invoke-RestMethod `
  -Uri "https://right here.now/api/v1/publish" `
  -Methodology Publish `
  -Headers @{
    "Authorization" = "Bearer $apiKey"
    "X-HereNow-Shopper" = "handbook/powershell"
  } `
  -ContentType "software/json" `
  -Physique $physique

$add = $create.add.uploads[0]

Invoke-WebRequest `
  -Uri $add.url `
  -Methodology Put `
  -ContentType $add.headers."Content material-Sort" `
  -InFile $file.FullName

$finalBody = @{
  versionId = $create.add.versionId
} | ConvertTo-Json

$closing = Invoke-RestMethod `
  -Uri $create.add.finalizeUrl `
  -Methodology Publish `
  -Headers @{
    "Authorization" = "Bearer $apiKey"
  } `
  -ContentType "software/json" `
  -Physique $finalBody

"Everlasting Website URL: $($create.siteUrl)"

After the above script has run, it is going to show a URL that you should utilize to entry your internet app. 

Updating your app is straightforward, too. After altering the code in index.html as required, simply rerun the above deployment script once more.

Methodology 3: Deploy with Hugging Face Areas

Hugging Face (HF) Areas is greatest identified for machine studying demos, but it surely additionally helps static HTML apps. 

What You Want

  • A Hugging Face account
  • A brand new HF House
  • Your index.html file
  • A README.md file containing House metadata

Step 1: Create an HF  account

Click on https://huggingface.co/ and use the Signal Up button on the high proper of the web page.

Step 2: Create a brand new House

When you’re logged in, click on the Areas button on the high, then click on Create a brand new House and select a reputation for it, e.g., starline-defenders-game. Fill in an outline and select no matter licence time period you need.

For the House SDK, select Static, and for the Template, select clean. Select Public because the app visibility, then click on the Create House button on the backside.

Step 3: Overwrite the pre-created index.html file

After the House has been created, click on on the Recordsdata hyperlink close to the highest of the web page; it’s between the App and Group hyperlinks. It’s best to see a display that appears a bit like a GitHub repo, with 4 recordsdata HF has pre-created for you. The one one which we have to concern ourselves with is the index.html file. It’s essential to copy over your native index.html to overwrite the present HF one. Do this utilizing Git Bash, as we did with GitHub pages. 

Notice that in the course of the working of the ultimate git push command proven under, a pop-up window will seem the place you’ll need to enter your HF username and an entry token to ensure that the command to succeed. You get your entry token by going to the next settings web page.

https://huggingface.co/settings/tokens

Click on the Create Token button. Underneath Token Sort, click on Write. Give your token a reputation and create it. Preserve a word of the token worth. Now sort within the following instructions into Git Bash. Change YOUR_USERNAME and YOUR_SPACE_NAME with your personal HF values.

# go the folder the place your index.html lives
cd ~/initiatives/starlinedefenders

git clone https://huggingface.co/areas/YOUR_USERNAME/YOUR_SPACE_NAME
cd YOUR_SPACE_NAME
cp ~/initiatives/starlinedefenders/index.html ./index.html
git add index.html
git commit -m "Change index with an area invaders sort sport"
# After the next push command, you will need to enter
# your HF username and the entry token you created beforehand
# earlier than the command will succeed
git push

Hugging Face will construct and publish the House within the background. After a minute or so, your app will probably be able to run. To run it, seek for your HF username, and all of your obtainable Areas ought to be returned. Click on on the related House hyperlink, and your app ought to run instantly.

To replace the app later, edit your native index.html, then push once more:

git add index.html
git commit -m "Replace sport"
git push

Evaluating the Deployment Strategies

All three work properly for this sort of undertaking. The variations are largely about workflow and viewers.

GitHub Pages

GitHub Pages is the most effective default selection in case your undertaking is already on GitHub. It’s secure, well-documented, and acquainted to builders.

Professionals:

  • Free for public repositories
  • HTTPS included
  • Very straightforward to replace with Git
  • Good for portfolios and undertaking demos
  • No particular platform lock-in past GitHub

Cons:

  • Free publishing typically means a public repository
  • Not supposed as heavy-duty industrial internet hosting
  • The deployment settings can confuse learners the primary time
  • Much less on the spot than a drag-and-publish model device

right here.now

right here.now’s the quickest option to flip a neighborhood app right into a reside URL. It’s significantly well-suited to small static apps produced with an agent or a coding assistant.

Professionals:

  • Very quick publishing circulation
  • Good for fast demos and previews
  • Free account helps everlasting static websites
  • Can host plain HTML, CSS, JavaScript, and property resembling pictures

Cons:

  • You want an account or declare circulation for everlasting internet hosting
  • Newer and fewer extensively recognised than GitHub Pages
  • It’s best to verify the present plan limits earlier than utilizing it for high-traffic initiatives

Hugging Face Areas

Hugging Face Areas is probably the most specialised choice. It’s wonderful in order for you your app to reside alongside demos, experiments, or AI-related initiatives.

Professionals:

  • Helps static HTML Areas
  • Free CPU-backed Areas can be found
  • Good match for those who already use Hugging Face
  • Can simply develop right into a Gradio, Streamlit, Docker, or ML-powered app later

Cons:

  • Deployment steps are a bit extra complicated than the opposite two.
  • Requires a README.md metadata block in addition to the index.html file
  • The general public URL is a Hugging Face House web page quite than a general-purpose static-site URL
  • Extra platform-specific than GitHub Pages

Abstract

The event of an internet web page or app is often solely half the battle. While you need to share your work with others, deployment turns into crucial facet. Certain, there are quite a few paid companies that may get you up and working, however for a extremely easy app or demo, the power to deploy totally free is a boon.

I’ve proven 3 totally different strategies to deploy a static app to the online totally free. To be trustworthy, all of them have related deployment workflows and implementation efforts, and I don’t suppose you’d go flawed selecting any of them.

Simply keep in mind that these strategies aren’t designed to deal with your app having hundreds of concurrent customers. They’re free in spite of everything. In the event you’re in search of that, you’ll have to look elsewhere and get your bank card out.

For reference, listed here are the three free URLs I created for “Starline Defender”

GitHub Starline Defenders

right here.now Starline Defenders

Hugging Face Areas Starline Defenders

Tags: AppinMinuteslocalpublicWebsite

Related Posts

Loupe o7ldeh0qo v3 card.jpg
Machine Learning

RAG Is Not Machine Studying, and the ML Toolkit Solves the Incorrect Drawback

June 2, 2026
Bala mlm pgvector.png
Machine Learning

Constructing Vector Similarity Search in PostgreSQL with pgvector

June 1, 2026
Rushikesh gaikwad mpevzmwdluw unsplash scaled 1.jpg
Machine Learning

Embeddings Aren’t Magic: The Predictable Failure Modes of RAG Retrieval

May 31, 2026
Mlm context aware semantic search.png
Machine Learning

Constructing Context-Conscious Search in Python with LLM Embeddings + Metadata

May 30, 2026
A c jnwba6cv4e0 unsplash.jpg
Machine Learning

Explaining Lineage in DAX | In the direction of Knowledge Science

May 29, 2026
Mlm the statistics of token selection logits temperature and top p walkthrough.png
Machine Learning

The Statistics of Token Choice: Logits, Temperature, and Prime-P Walkthrough

May 29, 2026

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

POPULAR NEWS

Gemini 2.0 Fash Vs Gpt 4o.webp.webp

Gemini 2.0 Flash vs GPT 4o: Which is Higher?

January 19, 2025
Chainlink Link And Cardano Ada Dominate The Crypto Coin Development Chart.jpg

Chainlink’s Run to $20 Beneficial properties Steam Amid LINK Taking the Helm because the High Creating DeFi Challenge ⋆ ZyCrypto

May 17, 2025
Image 100 1024x683.png

Easy methods to Use LLMs for Highly effective Computerized Evaluations

August 13, 2025
Blog.png

XMN is accessible for buying and selling!

October 10, 2025
0 3.png

College endowments be a part of crypto rush, boosting meme cash like Meme Index

February 10, 2025

EDITOR'S PICK

Tdsrabbit.jpg

A Deep Dive into RabbitMQ & Python’s Celery: The way to Optimise Your Queues

September 3, 2025
1 1.png

Newbie’s Information to Making a S3 Storage on AWS

April 22, 2025
Lucas davies 3aubsnmgule unsplash scaled.jpg

Evaluating Perplexity on Language Fashions

December 29, 2025
Depositphotos 527999664 Xl Scaled.jpg

Information-Pushed Information to Keep away from These 15 Errors as an Amazon Vendor

January 3, 2025

About Us

Welcome to News AI World, your go-to source for the latest in artificial intelligence news and developments. Our mission is to deliver comprehensive and insightful coverage of the rapidly evolving AI landscape, keeping you informed about breakthroughs, trends, and the transformative impact of AI technologies across industries.

Categories

  • Artificial Intelligence
  • ChatGPT
  • Crypto Coins
  • Data Science
  • Machine Learning

Recent Posts

  • From Native App to Public Web site in Minutes
  • Bitcoin ETF Outflows And AI Inventory Pivot Set off Bear Run
  • A Light Primer on LLM Explainability
  • Home
  • About Us
  • Contact Us
  • Disclaimer
  • Privacy Policy

© 2024 Newsaiworld.com. All rights reserved.

No Result
View All Result
  • Home
  • Artificial Intelligence
  • ChatGPT
  • Data Science
  • Machine Learning
  • Crypto Coins
  • Contact Us

© 2024 Newsaiworld.com. All rights reserved.

Are you sure want to unlock this post?
Unlock left : 0
Are you sure want to cancel subscription?