- Drop the dpd-exposed.js file into your node_modules directory. (You might have to create one if you installed Deployd using the dpd command line utility.)
- Open your Deployd dashboard and click the big green add button. You'll see the Exposed Collection type. Use it to create a collection like you would any other.
- Add some properties to your collection.
- Add some data to your collection. Remember that these scripts are run per instance on records from the database. It won't even run unless you add some data to the collection.
- In a dashboard script (ie. ON GET), use the headers variable directly.
console.log(headers);