Skip to content
This repository has been archived by the owner on Feb 16, 2021. It is now read-only.

A template for creating echo ring applications using echo chamber

Notifications You must be signed in to change notification settings

blandflakes/echo-chamber-template

Repository files navigation

echo-chamber-template

Clojars Project

A leiningen template for generating ring echo app servers.

Usage

lein new echo-chamber <app name>
lein run

The server can be tested by POSTing JSON Echo requests to localhost:8080/hello

In general, you'll need to edit the app namespace to provide actual functionality for your app. For more information on building the app, see echo-chamber.

Testing

Today, you can test your app's behavior in two ways:

  1. With an echo device
  2. With the service simulator

Read more here.

In the future, I plan to release a simulator that can run in the REPL, exercising an app in isolation from its service pieces, but simulating how Alexa would behave for a given input.

Publishing

When you're ready to publish, follow the instructions here.

Certificates

Amazon requires that your service is secured with a valid certificate. See this resource for more information.

Many platform-as-service offerings will provide SSL for you. Other setups would involve using a web server like nginx as a reverse SSL proxy.

Currently, there is no support for configuring SSL on the app server.

Request Validation

Amazon also requires that you validate incoming requests. The server component vends functionality for those. To turn them on, just include them in the list of "verifiers" when you construct the server, for example:

:verifiers [(signature/verifier) (timestamp/verifier)

License

Copyright © 2015-2018 blandflakes

Distributed under the MIT License.

About

A template for creating echo ring applications using echo chamber

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published