This app server is part of the app components example app. By following the aforementioned guide, you'll see how an example Express server communicates with requests made from the client. In particular, you'll be able to demo:
- Widget
- Modal form
- Lookup
- Entry point (within the Asana UI)
Note: To view an example app server with rule actions, see app-components-rule-action-example-app.
- Clone this repo:
git clone [email protected]:Asana/app-components-example-app.git
- Install dependencies:
npm install
-
Enable HTTPS by:
- Generating keys and certificate:
openssl req -x509 -newkey rsa:2048 -keyout keytmp.pem -out cert.pem -days 365
- Getting decrypted keys:
openssl rsa -in keytmp.pem -out key.pem
-
Start the server (must be kept running when using the app in Asana):
npm run dev
- If blocked by Chrome when opening your page (e.g., an SSL warning), click anywhere in the browser and type:
thisisunsafe
- Overview of app components
- Getting started with app components