/app-components-example-app

app-components-example-app

Primary LanguageJavaScript

App Components Example App Server

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:

Note that due to the infrastructure behind App Rules, this repository does not include an example of App Rules running in a local server.

Getting Started

  1. Clone this repo:
git clone git@github.com:Asana/app-components-example-app.git
  1. Install dependencies:
npm install
  1. Enable HTTPS by:

    1. Generating keys and certificate:
    openssl req -x509 -newkey rsa:2048 -keyout keytmp.pem -out cert.pem -days 365
    
    1. Getting decrypted keys:
    openssl rsa -in keytmp.pem -out key.pem
    
  2. Start the server (must be kept running when using the app in Asana):

npm run dev
  1. If blocked by Chrome when opening your page (e.g., an SSL warning), click anywhere in the browser and type:
thisisunsafe

Resources: