Comments (6)
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.
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.
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.
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.
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.
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)
- Migrate to SSL by default HOT 17
- Update license files
- `componentWillReceiveProps` for react-amp-document will be removed in React 17
- [amp-shadow-reader] 'connect-history-api-fallback' declared at gulpfile.js and NOT USED?
- Dependency deprecation warning: babel-preset-es2015 (npm)
- Dependency deprecation warning: babel-preset-es2015 (npm)
- Error in running Amp-pwa sample HOT 5
- Unable to install amp-paywall-demo
- Remove Google+ from AMP Samples
- amp-camp fails to start
- Creating a PWAMP application using wordpress as CMS HOT 6
- Consider some accessibility for the top of the page at https://amp-article.herokuapp.com/ HOT 1
- AMP Camp: related products don't work when you click on item from cart
- In amp-update-cache sample we are getting amp_ts=undefined error.
- I tried to find the declaration the ${ampjs} but I did not find it. ¿Where is it? HOT 1
- Rename the default branch of this repo from `master` to `main` HOT 7
- Sample for angular
- Demo is down
- Dependency Dashboard
- ampproject/samples
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from samples.