Local development using HTML5 storage
I am experimenting with HTML5 local storage, but was disappointed to find out that the browser will not allow local storage when the file is local. I am assuming that the browser (Chrome in my case, FF too) wants to see the domain, not the location of the file. Has anyone here found a workaround for local development? Perhaps creating a local domain? This sounds like too much trouble. The browser should only have the developer option, grrrrrr.
a source to share
How about using Python as a lightweight server, go to your working directory and:
python -m SimpleHTTPServer
See http://www.linuxjournal.com/content/tech-tip-really-simple-http-server-python for details .
a source to share
You will find that most web developers will set up a local web server as this is the only way to work locally with server-side scripts - anything written in PHP, ASP.NET, Python, etc., which includes all content management systems ... It's not too difficult either. On Linux, just install Apache using your package manager ( sudo aptitude install apache2
on Ubuntu). On Mac OS, you already have one installed - just turn on web access in System Preferences> Sharing and then navigate to http: // localhost / ~ YourUsernameHere / . On Windows, I would recommend installing Apache HTTP Server if you just need a web server, or XAMPPif you want MySQL, PHP and Perl (which are great for server side development) also installed with minimal fuss.
a source to share