Giter Club home page Giter Club logo

ytmp3-cloud's Introduction

ytmp3 cloud

The cloud-based YouTube to mp3 host/converter

Overview

alt text

Prerequisites

  • bash
  • wget
  • docker
  • make
  • awscli (with admin account)
  • samcli

Setup

Choose a unique bucket name

echo ytmp3-cloud-"$(tr -dc a-z0-9 </dev/urandom | head -c 13 ; echo '')"

Set YTMP3_STORE_BUCKET_NAME in scripts/deploy.sh

Run the deploy script

make

Clean

Clean up build files during or after development

make clean

Destroy

Run the destroy script

make destroy

REST API

The REST API URL will be Ytmp3ApiUrl, output from ./scripts/deploy.sh

GET /mp3/{videoId}

400 Invalid videoId

{
    "error": "Invalid videoId"
}

400 Download failed

{
    "error": "Failed to download #########, please try again later",
}

200 Download pending

{
    "videoId": "#########",
    "status": "PENDING",
    "updatedAt": "2023-04-23T19:27:44.850Z",
    "createdAt": "2023-04-23T19:27:44.850Z"
}

200 Download complete

{
    "videoId": "#########",
    "status": "COMPLETE",
    "url": "https://##########.s3.#########.amazonaws.com/0Sl5-Cl6LOo.mp3",
    "updatedAt": "2023-04-23T19:27:44.850Z",
    "createdAt": "2023-04-23T19:27:44.850Z"
}

Contributors

Contributions are most welcome, please feel free to submit a PR!

Credits

ytmp3-cloud's People

Contributors

dependabot[bot] avatar imgbotapp avatar ricksterhd123 avatar

Watchers

 avatar  avatar

ytmp3-cloud's Issues

Central config json for easy deployment + options

There's some hardcoded values shared between the scripts which can be moved out into a central config. Not to mention, the .toml file could be replaced as well. Using jq we can fetch values from the json value in the bash scripts.

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.