Giter Site home page Giter Site logo

amaui-org / amaui-aws Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 302 KB

AWS

Home Page: https://docs.amaui.me/library/aws

License: MIT License

JavaScript 51.09% TypeScript 48.91%
aws aws-s3 aws-sdk aws-sdk-js aws-sdk-javascript web browser javascript typescript node nodejs express expressjs library amaui utils js

amaui-aws's Introduction



amaui logo

amaui AWS

AWS


MIT license     Production ready     100% test cov     Nodejs

Very simple code     Modern code     Junior friendly     Typescript     Made with 💛


Getting started

Add

yarn add @amaui/aws

Add @aws-sdk/client-s3 peer dependency.

yarn add @aws-sdk/client-s3

Use

  import AmauiAws from '@amaui/aws';

  // Make if you wanna a config file and
  // inside of it add all the process.env related props
  import Config from './config';

  // Make a new aws instance
  const amauiAws = new AmauiAws({
    s3: {
      bucketName: Config.aws.s3.bucketName,

      credentials: {
        accessKeyId: Config.aws.s3.accessKeyId,
        secretAccessKey: Config.aws.s3.secretAccessKey
      },

      endpoint: Config.aws.s3.endpoint,

      region: Config.aws.s3.region
    }
  });

  // Add
  await amauiAws.s3.add('a', 4);

  // Get
  await amauiAws.s3.get('a');

  // 4

  // Remove
  await amauiAws.s3.remove('a');

  await amauiAws.s3.get('a');

  // undefined

Dev

Install

yarn

Test

yarn test

One time local setup

Install docker and docker-compose

Install aws

Make docker containers

yarn docker

Prod

Build

yarn build

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.