Skip to content

This sample project to generate crud using the database DynamoDB of AWS

License

Notifications You must be signed in to change notification settings

wilian746/go-crud-dynamodb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Crud template of the dynamodb

An easy template to access and get your data on aws DynamoDB.

Getting Started

Pre-requirements

In your machine install AWS-CLI and CONFIGURE to save configuration of the your database

Install

If you already have golang installed you can install by running the command:

go get -u ./...

Init server

To start the project run the command:

go run cmd/app/main.go

You can see in your terminal this log: service running on port :8080

Usage

Health

This route return life of the project

    GET - http://localhost:8080/health

Get_All

This route return all data in your database

    GET - http://localhost:8080/product

Get_One

This route return specific data in your database

    GET - http://localhost:8080/product/{ID}

Post

This route create on item in your database

    POST - http://localhost:8080/product

    {
        "name": "product"
    }

Put

This route update on item in your database

    PUT - http://localhost:8080/product/{ID}
    
    {
        "name": "product1"
    }

Delete

This route remove on item in your database

    DELETE - http://localhost:8080/product/{ID}

About

This sample project to generate crud using the database DynamoDB of AWS

Resources

License

Stars

Watchers

Forks

Packages

No packages published