go-serverless-app

module
v0.0.0-...-40ed54d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 16, 2024 License: MIT

README

Go Serverless CRUD App

This project is a serverless CRUD application built using AWS Lambda and DynamoDB. It provides a simple API for managing user data using API Gateway , DynamoDB , Lambda Comlpete serveless stack.

This project is a serverless CRUD application built using AWS Lambda and DynamoDB. It provides a simple API for managing user data.

Table of Contents

Installation

  1. Clone the repository:

    git clone https://github.com/Reaper1994/go-serverless-app.git
    cd go-serverless-app
    
  2. Set up your Go environment and install dependencies.

Start the application

go run cmd/main.go

API Endpoints

The application exposes the following API endpoints:

Middleware

The application uses middleware for logging and monitoring. The TreblleMiddleware is included to track API requests and responses.

Environment Variables

The following environment variables are required:

  • TREBLLE_API_KEY: Your Treblle API key for monitoring.
  • TREBLLE_PROJECT_ID: Your Treblle project ID.
  • AWS_REGION: The AWS region where your DynamoDB is hosted. // auto setup by AWS

Running the Application

  1. Install dependencies:

    go get ./...
    
  2. Run the application:

    go run cmd/main.go
    
  3. Test the endpoints using a tool like Postman or curl.

Contributing

Contributions are welcome! Please fork the repository and submit a pull request with your changes.

License

This project is licensed under the MIT License. See the LICENSE file for details.

Directories

Path Synopsis
package

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL