Giter Site home page Giter Site logo

awsdynamodb's Introduction

AWS DynamoDB Product API

Manage products with ease using this CRUD (Create, Read, Update, Delete) API powered by Amazon DynamoDB as the underlying database. To get started, follow the steps below to configure your AWS CLI profile and integrate it with the appsettings.json file.

Prerequisites

Before you begin, ensure you have the following prerequisites installed:

  1. .NET 6 SDK
  2. AWS Command Line Interface (CLI)

Configuration

1. AWS CLI Configuration

Follow these steps to configure your AWS CLI profile:

  1. Install the AWS CLI by referring to the official installation guide.

  2. Open your terminal or command prompt and run the following command, replacing your-profile-name with your chosen AWS profile name:

    aws configure --profile your-profile-name
  3. You'll be prompted to provide your AWS Access Key ID, AWS Secret Access Key, default region name, and output format. Enter the required information based on your AWS account setup.

2. appsettings.json Configuration

In the appsettings.json file of the API project, include your AWS profile name as follows:

{
  "AWS": {
    "Profile": "your-profile-name",
    "Region": "your-aws-region"
  },
  "Logging": {
    "LogLevel": {
      "Default": "Information",
      "Microsoft": "Warning",
      "Microsoft.Hosting.Lifetime": "Information"
    }
  },
  // Other settings...
}

Replace "your-profile-name" with the AWS profile name you configured in the AWS CLI, and set "your-aws-region" to your preferred AWS region (e.g., "us-east-1").

Running the API

To run the API locally, follow these steps:

  1. Clone this repository to your local machine:

    git clone https://github.com/guilhermebernava/AwsDynamoDb.git
  2. Navigate to the project directory:

    cd aws-dynamodb-product-api
  3. Build and run the API using the .NET CLI:

    dotnet run

The API will be accessible locally at http://localhost:5000 or https://localhost:5001.

API Endpoints

Explore the following API endpoints:

  • GET /api/product: Retrieve a list of all products.
  • POST /api/product: Create a new product.
  • PUT /api/product: Update an existing product by ID.
  • DELETE /api/product: Delete a product by ID.

awsdynamodb's People

Contributors

guilhermebernava avatar

Watchers

 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.