A leiningen template for generating ring echo app servers.
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.
Today, you can test your app's behavior in two ways:
- With an echo device
- 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.
When you're ready to publish, follow the instructions here.
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.
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)
Copyright © 2015-2018 blandflakes
Distributed under the MIT License.