aws-addo-api

The backend for a serverless Addo application. Built with AWS Lambda and the Serverless Framework.

Usage no npm install needed!

<script type="module">
  import awsAddoApi from 'https://cdn.skypack.dev/aws-addo-api';
</script>

README

Addo AWS API

The backend for a serverless Addo application. Built with AWS Lambda and the Serverless Framework.

Setup

Prerequisites

Install dependencies

yarn

or

npm i

Running Tests

yarn test
npm run test

Deploy

serverless deploy

Configuration

Enter your configuration variables in secrets.json. Example:

{
  "stripeSecretKey": "sk_test_or_live_1234656",
  "mongodb_connection_string": "mongodb+srv://addo:VeryStrongPassord@addomongodb.com/dbname?retryWrites=true&w=majority",
  "images": {
    "endpoint": "https://image_to_upload_on_S3_AWS.com",
    "bucket": "BucketName",
    "accessKeyId": "123456ASDFG",
    "secretAccessKey": "123456ASDFG",
    "region": "region-aws"
  }
}

You need:

  • Your Stripe secret key
  • Your MongoDb connection string
  • Endpoint of images storage
  • Bucket name of AWS Storage
  • AccessKeyId
  • SecretAccessKey
  • AWS Region

Thanks

addo-aws-api © 2020+, Addo Ticket Srl.
Authored and maintained by Addo Ticket Srl with help from contributors ([list][contributors]).

Addo Ticket Srl  ·