https://www.dataformsjs.com/examples/places-demo-web.htm
And an animated CSS Hello World that use a rotating Earth and Moon around the Sun:
135 karma · joined November 26, 2019
https://www.dataformsjs.com/examples/places-demo-web.htm
And an animated CSS Hello World that use a rotating Earth and Moon around the Sun:
Or view source code on GitHub: https://github.com/dataformsjs/dataformsjs/blob/master/examp...
This demo is browser based with Babel Standalone so give it an extra second or two on a phone.
This component is designed to work well with both `create-react-app` and directly in a browser.
Basic usage: <JsonData url="https://hacker-news.firebaseio.com/v0/topstories.json" isLoading={<ShowLoading />} hasError={<ShowError />} isLoaded={<ShowTopStories />} />
The article (and site) from this post is very good.
I’ve been programming with JavaScript for 20+ years now and learned Python only a few years ago. Actually I did some a very small project in it over 10 years ago but didn’t remember enough so I had to relearn (and it’s relatively quick to learn compared to other languages I feel). I’ve used it at 3 different jobs now for a variety of scripting tasks that I would have previously used C#/.NET or other languages for and I've developed a number of sites with Flask now (both on Linux and Windows with IIS).
If you are based on the US a lot of companies here that look for hire for C#/.NET and Java. Larger corporate type companies for .NET while Java is commonly used for high traffic sites (game engines, etc).
For the first link where the developer switched to [php-fpm] his site could only handle 30 users at a time so his server side framework must have been very slow. As I mentioned the script from the post allows for 2500+ requests-per-second (tested 100 concurrent users) and allows for many more users with tweaking.
The setup for [php-fpm] with Apache is somewhat complex so I would recommend using nginx if you want to use [php-fpm].
https://smddzcy.com/posts/2017-09-16/migrating-from-mod-php-...
https://www.reddit.com/r/PHP/comments/4bi9a4/why_is_mod_php_...
https://tecadmin.net/install-apache-php-fpm-ubuntu-18-04/
https://serverfault.com/questions/645755/differences-and-dis...
https://stackoverflow.com/questions/47916133/need-to-install...
https://www.linode.com/docs/web-servers/apache/running-fastc...
I would recommend allowing one or two pages for free without a login so anyone can try without the need for signing up. Then if they want more than a few pages they can sign up.
I really appreciate your nice comments! For the script I made it a readable as I possibly could since scripts like this need as much clarity as possible for security purposes and to help anyone who wants to re-purpose the script for their environment.
h1x you might want to take a look at my other shell script on this project as well. It's about ~1500 lines of well commented code and allows file encryption on many different Linux OS's.
https://github.com/fastsitephp/fastsitephp/blob/master/scrip...
The script of the link (that I wrote) is intended as a starting point for a clean and secure web server setup without a third-party ops product - basically what you wrote “ where you could achieve the same in a few lines.”.
Rather than a few lines though the script from the line has a lot of checks and makes needed config updates. Since it’s a single script with no dependencies a developer or devops can easily copy it and modify it for their needs or environment.
Python is extremely easy to setup on Windows though.
Time have changed a lot though as you can now run complex bash scripts on the Windows Subsystem for Linux (published by Microsoft).
Windows Subsystem for Linux https://docs.microsoft.com/en-us/windows/wsl/about
Print Screens and Doc of running as Bash Script on Windows: https://fastsitephp.com/en/documents/file-encryption-windows
For nginx the script is using php-fpm.
During testing with this script on a clean os I am able to achieve around 2500 to 6500 requests per second on the lowest cost VM's with both setup options (Apache or nginx) and 25k+ requests per second on higher cost servers.
https://github.com/chef/omnitruck
And I see their cheapest product is $16,500/year.
The script I wrote is intended for a clean and secure install of either Apache or nginx and PHP without a complex setup or the need for third-party options so it will work on any cloud host. Currently the one I published only supports Ubuntu but I'll add more OS's in the future.
Here it is for anyone reading this discussion: https://www.ansible.com/
Basically the reason I created this rather than relying on something else is that I wanted an easy script that can setup a full production Web Server environment for PHP without any dependencies other than the minimum needed.
The script is completely free and open source any easy to change in case someone wants to use it for Laravel, Symfony, or something else. Most automation scripts are used to sell additional products like Ansible so this script avoids that.
Currently the script works on Ubuntu only but I will expand to RedHat and other OS's as time permits. Of course if anyone can help contribute I would gladly accept.
To run download then call the script: wget https://www.fastsitephp.com/downloads/create-fast-site.sh sudo bash create-fast-site.sh
Additional Docs in multiple langugages are here: https://www.fastsitephp.com/en/documents/install-php-on-linu...
https://github.com/dataformsjs/dataformsjs/blob/master/examp...
And for a more advanced demo (full SPA) try this version:
Also to try it out online (no login required, no cookies, etc) anyone can create a site here and create and run PHP code directly on a sever. Sites last for 1 hour.