Skip to content

Latest commit

 

History

History
35 lines (25 loc) · 1.36 KB

File metadata and controls

35 lines (25 loc) · 1.36 KB

Your Project's Title...

Your project's description...

Environments

Installation

npm i

Linting

npm run lint

Local development

  1. Create a new repository based on the aem-boilerplate template and add a mountpoint in the fstab.yaml
  2. Add the AEM Code Sync GitHub App to the repository
  3. Install the AEM CLI: npm install -g @adobe/aem-cli
  4. Start AEM Proxy: aem up (opens your browser at http://localhost:3000)
  5. Open the {repo} directory in your favorite IDE and start coding :)

Cloudflare Worker - Local development

  1. Run wrangler deploy to update worker code in Cloudflare Dashboard. You should NOT edit worker code in Cloudflare Dashboard directly. Any changes that need to be made to the worker code should be done through the worker.js file.

  2. Run wrangler dev --remote to test Square locally, this turns the worker server ON.

    1. If you want to test production locally, go to wrangler.toml and change [vars] ENVIRONMENT = 'production'
    2. If you want to test sandbox locally, go to wrangler.toml and change [vars] ENVIRONMENT = 'sandbox'
  3. Wrangler commands