Skip to content

jerolan/serverless-example

Repository files navigation

Serverless Integration Event Handling with DynamoDB

This project demonstrates a serverless application for handling integration events using AWS Lambda and DynamoDB. It provides functionality for creating orders and publishing integration events associated with those orders.

Prerequisites

Before running the application, make sure you have the following prerequisites installed:

  • Node.js (version X.X.X)
  • AWS CLI (version X.X.X)
  • Serverless Framework (version X.X.X)

Installation

  1. Clone the repository:

    git clone https://github.com/jerolan/serverless-example.git
  2. Install the dependencies:

    cd serverless-example
    npm install
  3. Set up AWS credentials:

    Configure your AWS credentials using the AWS CLI:

    aws configure

Usage

To create an order and publish integration events, run the following command:

sls deploy

This will deploy the serverless application to your AWS account and provide you with the necessary endpoints to interact with the application.

Testing

To run the tests for the application, use the following command:

npm test

This will execute the test suite and provide you with the test results.

Contributing

Contributions are welcome! If you find any issues or have suggestions for improvements, please open an issue or submit a pull request.

License

This project is licensed under the MIT License.

Feel free to customize the README.md according to your specific project details and requirements.