{"repo":"LasaleFamine/http-server-pwa","free":true,"listed":false,"github":"https://github.com/LasaleFamine/http-server-pwa","clone":"git clone https://github.com/LasaleFamine/http-server-pwa.git","description":":space_invader: http-server alike but for serving and rendering PWA: pwa-server","language":"JavaScript","stars":15,"topics":["http-server","expressjs","cli","historyapifallback","pwa","indexing","bot-render","puppeteer","pwa-server","hacktoberfest"],"license":"MIT","category":"scrapers-browser-automation","readme_excerpt":"http-server-pwa aka pwa-server http-server alike but for serving and rendering PWA: pwa-server What This is a different version (btw inspired by) of the insta-ready http-server, but with some key features to render Progressive Web Apps (or also SPA) correctly for bots like googlebot or Facebook crawlers, so your application can be crawled with its content already loaded. This should avoid the killing problem of the SEO for PWAs. The server will render as normal, static ExpressJS server for your normal users. Worth noting is that the server supports the history-fallback behavior. You maybe can avoid that # (hash) for your PWA navigation ✌️. Features The server is not \"dependecies-free\" like the original http-server and instead is powered by ExpressJS under the hood and Puppeter for render the pages to bots. pupperender - Puppeter middleware to render correctly the PWA content for the crawlers. express-history-api-fallback - to fallback correctly to the index.html . express-http-to-https - automatically redirect http requests to https . devcert - Create development certificate on the fly for local https . NOTE: you could be prompted to insert your password before starting the server. This is necessary of using OpenSSL. More info on devcert repository. Production usage The server will not create any SSL certificate on the fly when you set process.env.NODE ENV = production even if --ssl flag is passed down. You have two alternatives here: - use a reverse proxy like CloudFlare and","default_branch":null,"files":null,"tree":[],"storefront":"/r/LasaleFamine","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/LasaleFamine/http-server-pwa/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}