GithubHelp home page GithubHelp logo

varmoh / buerokratt-s3-ferry Goto Github PK

View Code? Open in Web Editor NEW

This project forked from devtailor/buerokratt-s3-ferry

0.0 0.0 0.0 31 KB

A generic service to trasnfer files to and from any S3 platform

License: MIT License

Shell 0.23% JavaScript 10.25% TypeScript 87.10% Dockerfile 2.42%

buerokratt-s3-ferry's Introduction

S3-Ferry

A generic service to trasnfer files to and from any S3 platform


Local Development

To develop the S3 Ferry, it's recommended to have nvm installed, which will ensure you have the correct node and npm versions.

# Install the required node version
nvm install

# Switch to the required node version
nvm use

# Install node dependencies
npm install

# Run the locakstack container
docker compose up localstack

# Run the API in development mode
npm run start:dev

Coding Standards

Linting and formatting is done with ESLint and Prettier.

# Run eslint
npm run lint:check

# Run prettier
npm run format:check

Running Tests

API endpoints are covered with basic e2e tests written with Jest.

# Run e2e tests locally
npm run test:e2e

Docker

You can run the S3 Ferry inside docker. The API will be exposed at http://localhost:3000.

# Build the docker image
docker compose build

# Run the docker images
docker compose up

Documentation

Automatically generated API documentation can be found at http://localhost:3000/documentation


Environment Variables

Environment variables and their meaning is defined below.

Variable Description
API_CORS_ORIGIN Specify CORS allowed domains.
- Asterisk (*) to allow all
- Empty value to allow nothing
- Otherwise provide a comma separated list of allowed domains
API_DOCUMENTATION_ENABLED Enable API documentation, value can be either true or false
S3_REGION Endpoint region for the S3 storage
S3_ENDPOINT_URL Endpoint URL for the S3 storage
S3_ACCESS_KEY_ID Access key for the S3 storage
S3_SECRET_ACCESS_KEY Secret access key for the S3 storage
S3_DATA_BUCKET_NAME Data bucket name for the S3 storage
S3_DATA_BUCKET_PATH Data bucket path for the S3 storage
FS_DATA_DIRECTORY_PATH Local filesystem data directory path

buerokratt-s3-ferry's People

Contributors

varmoh avatar jannostern avatar turnerrainer 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.