Giter Site home page Giter Site logo

casualuser / eventuate-examples-java-aws-lambda-todo-list Goto Github PK

View Code? Open in Web Editor NEW

This project forked from eventuate-examples/eventuate-examples-java-aws-lambda-todo-list

0.0 2.0 0.0 78 KB

AWS Lambda and Java version of Eventuate Todo list application

Shell 1.64% Java 98.36%

eventuate-examples-java-aws-lambda-todo-list's Introduction

Example Java AWS Lambda function for Eventuate

This project is the AWS Lambda/Serverless framework-based version of the Eventuate Todo application. The Todo List application lets users maintain a todo list. This example illustrates how you can use develop an application with a microservices architecture that uses the following:

Building the application

To build the app:

./gradlew build

Installing the plugin

To install the Eventuate AWS Gateway plugin for Serverless:

npm install

or if you are using Vagrant

npm install --no-bin-links

When the todo-queryside-lambda is deployed, this plugin registers it with Eventuate. When the todo-queryside-lambda undeployed, the plugin unregisters it. See the serverless.yml for the details of how the events of interest are specified.

Deploying the lambdas

Set the Eventuate environment variables: EVENTUATE_API_KEY_ID and EVENTUATE_API_KEY_SECRET.

To deploy the lambdas:

serverless deploy

Accessing the application

First, set an environment variable to the root URL. Serverless displays this when you lambdas are deployed. Alternatively, run this command:

export BASE_URL=$(serverless info -v | grep ServiceEndpoint | cut -d' ' -f2)

To create a todo:

curl -d '{"title" : "Say Hello"}' $BASE_URL/todos

Make a note of the id of the created todo, eg.

export ID=xxxx-yyyy

To get the Todo:

curl $BASE_URL/todos/$ID

To get all todos:

curl $BASE_URL/todos

To update a Todo:

curl -X PUT -d '{"title" : "Say Hello Again"}' $BASE_URL/todos/$ID

To delete a Todo:

curl -X DELETE $BASE_URL/todos/$ID

Got questions?

Don't hesitate to create an issue or see

eventuate-examples-java-aws-lambda-todo-list's People

Contributors

cer avatar crcinc avatar

Watchers

James Cloos avatar Aleksei Tcelishchev avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.