pFad - Phone/Frame/Anonymizer/Declutterfier! Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

URL: http://github.com/SUI-Components/AMPRunner

ink crossorigen="anonymous" media="all" rel="stylesheet" href="https://github.githubassets.com/assets/primer-9e07ff8eaaaff3a3.css" /> GitHub - SUI-Components/AMPRunner · GitHub
Skip to content

SUI-Components/AMPRunner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AMPRunner

Using aws lambdas function we can provide an AMP versión of any page

Install

Clone the repo and inside packages/serverless run $ npm install

Development

To start to develop run npm start that will put a server listen in at the port 3000 by default o any port setting in the process.env.PORT variable.

The server will response to GET request with the format:

http://localhost:3000/amp/[URL_CANONICAL_ORIGINAL]?package=[AMP_PACKAGE_TEMPLATE]&organization=[ORG_AMP_PACKAGE_TEMPLATE]&version=[VERSION]

Url example:

http://localhost:3000/amp/https://www.fotocasa.es/vivienda/malaga-capital/parking-terraza-trastero-zona-comunitaria-piscina-panorama-142784244?package=amp-generator-alpha-basic&organization=schibstedspain&version=beta

Version is the uniq param dont require, and by default we will search for the latest version.

Deploy

To deploy this package you must have install globally the up package.

To deploy to staging: $up deploy to deploy to production: up deploy production

More up command in the up documentation

### AMP parser pacakges

Is regular npm packages, with two files in the root of the project.

  • queries.js
  • index.tpl

Releases

No releases published

Packages

 
 
 

Contributors

pFad - Phonifier reborn

Pfad - The Proxy pFad © 2024 Your Company Name. All rights reserved.





Check this box to remove all script contents from the fetched content.



Check this box to remove all images from the fetched content.


Check this box to remove all CSS styles from the fetched content.


Check this box to keep images inefficiently compressed and original size.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy