Code Monkey home page Code Monkey logo

Comments (6)

88kbbq avatar 88kbbq commented on August 26, 2024

Sorry AMP team, your demo is broken and these install instructions are unclear. Any way to help the community use amp-access? This is new and completely different, poor documentation. Write like a regular person, not as a superstar programmer.

from samples.

ericlindley-g avatar ericlindley-g commented on August 26, 2024

Hey @88kbbq — can you say a bit more about what you're trying to do, what documentation you're looking at, and where you're getting stuck?

/cc @andreban and @sebastianbenz , who I believe worked on the paywall example at some point (?)

from samples.

88kbbq avatar 88kbbq commented on August 26, 2024

Forgive me @ericlindley-g because I'm not a real programmer and nobody in Taiwan has ever even heard of AMP HTML, let alone know how to help. Being proficient in HTML, how would I implement the amp-access feature? There are plenty of files here, but what file structure should I follow (every example here is different), are they placed inside the home directory or outside, how should I modify these files, and then what?

What's going on here is that you have nice code all bundled for pros, but nothing for the average joe to follow. It's making me think of going back to a CMS. My test site is at test.88k.com.tw but I can't figure out how to achieve even basic interactivity with this standard. I hate to put emotion in support requests but we need a cookbook. Without one, I simply won't be able to use AMP for our project, and that would suck.

from samples.

88kbbq avatar 88kbbq commented on August 26, 2024

Can you offer a PHP version for these endpoints? For example, the authorization for amp-access and action-xhr for amp-form, these are nowhere to be found. I understand your documentation states it's the user's responsibility to provide these endpoints, but how can I do this? Where do you find examples of what you guys have done here? I see Go code but I can't find anybody in this country to help with Go.

from samples.

andreban avatar andreban commented on August 26, 2024

Hi @88kbbq,

Regarding a cookbook for AMP, check out https://ampbyexample.com/. It contains a set of cookbook style samples that range from how to write a simple Hello World in AMP to more advanced and dynamic features. It also includes amp-access.

The parts that you need to provide on the server-side for amp-access to work are the authorisation and pingback endpoints. You can check their implementation on api.js.

You may also want to take a look at the CORS part of the demo, on the amp-access-cors.js.

Unfortunately, we only have the Node.js (Javascript) based samples at the moment.

If you have specific questions on how to implement amp-access, the best places to look for help are either on StackOverflow and the AMP Slack channel.

from samples.

88kbbq avatar 88kbbq commented on August 26, 2024

Thank you @andreban. I've tried to use SO but I don't have karma to post questions. Joined the Slack channel but not finding any help there. Problem is the ampbyexample code never works. It works on your site, but copy/paste to my static html page and nothing works like the demo. If the AMP team wants better adoption, really they need to do what others do and offer libraries to download and learn from. I even cloned ampbyexpamle on my server but it doesn't work either. So you have some really basic issues that prevent reasonably capable people like me from learning and implementing AMP. You guys are working really hard to make this standard the best it can be, but you're locking out lots of people by not doing this.

from samples.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.