Get ready to
npm install npm run dev open http://localhost:8080
||Port on which to bind the FE server or dev server.|
||Base URL at which the app is hosted. Used to generate full URLs for variety of things since AMP needs them.|
Basic styles can be controlled by tinkering with
You can also run the checks individually:
npm run test:lint npm run test:amplint
Code is formatted using prettier because that's what you should be doing.
A basic overview:
- src [source files] - component [react components] - server [server-side / api code] - util [utility functions] - theme.js [app theme] - static [assets served under /static]
A more complete breakdown of this structure and a variety of the choices made herein can be found in the following articles:
This app is meant to be deployed to heroku, though it would probably happily exist in other environments. The
node buildpack will run the following:
And then start the app with:
The generated code lives in
/dist and this information should be enough to self-host in just about any other environment (Docker, bare metal, etc.).