Skip to content

orkait/file-service

Repository files navigation

S3 File Listing Service

This service provides an API endpoint to list files in an Amazon S3 bucket.

Getting Started

To get started with this service, follow the steps below.

Prerequisites

  • Go (1.16 or higher)
  • Amazon Web Services (AWS) account with S3 access

Installation

  1. Clone the repository:
git clone https://github.com/orkait/orkait-file-service.git
  1. Change into the project directory:
cd orkait-file-service
  1. Install the dependencies:
go mod download
  1. Configure the service: Create a configuration file named config.json in the project root and populate it with the necessary configuration parameters:
BUCKET_NAME=orkait-file-service
REGION=ap-south-1
DOWNLOAD_URL_TIME_LIMIT=300
PAGINATION_PAGE_SIZE=100
AWS_ACCESS_KEY_ID=your-aws-access-key-id
AWS_SECRET_ACCESS_KEY=your-aws-secret-access-key

Usage

To run the service, execute the following command:

go run main.go

About

This service provides an API endpoint to list files in an Amazon S3 bucket.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors