3 ms·
Not sure if you meant having an HTML/JS app served from GitHub with database capabilities, but maybe you'd want to check out something like StackMob? (Disclaim
by ericktai 15y ago
Not sure if you meant having an HTML/JS app served from GitHub with database capabilities, but maybe you'd want to check out something like StackMob? (Disclaimer, I work at StackMob, but appearing here as a fellow developer)
You can commit your HTML/JS files to GitHub and StackMob will serve those pages for you via the GitHub integration StackMob has. What that enables you to do is actually use StackMob's REST API for its backend services (datastore, versioning, custom server side code) via AJAX since there's no cross-domain AJAX problems (pages and ajax calls are going to/from your stackmob.com hosted pages)
I use it to host my fiancee and I's wedding site and I use the datastore to hold guest information, people can register/login etc. The data is stored on Stackmob via the AJAX calls by using the JS SDK StackMob provides.
Example javascript:
var user = new StackMob.User({ username: 'asdf', password: 'asdf', acquaintance: 'bride', ...});
user.create(); //this fires off the ajax call to StackMob and saves your data in the datastore on that end.
It's free at a certain usage level (I'd imagine your personal use would be within the free threshold) if you wanted to give it a go.
https://www.stackmob.com/devcenter/docs/StackMob-Hosted-HTML5:-GitHub https://www.stackmob.com/devcenter/docs/StackMob-Hosted-HTML...