Todd Owen
Todd Owen

Reputation: 97

Does Apache Cordova need a server?

I see that it uses HTML, CSS, and JS, but does that package with the app or does it need a server if it is a static page?

Also if a server is needed could i get away with hosting on Github pages.

Upvotes: 0

Views: 355

Answers (1)

Kerri Shotts
Kerri Shotts

Reputation: 2372

Your HTML, CSS, and JS files are bundled with the app bundle and loaded from local storage. This means that your content comes from file:// (unless you have certain plugins installed that create an http server on localhost).

You'll only need a server if you need one as a backend (which you'd communicate with via XHR/Ajax).

Upvotes: 1

Related Questions