GithubHelp home page GithubHelp logo

cybergaz / jiosaavn-api-rs Goto Github PK

View Code? Open in Web Editor NEW

This project forked from rajput-hemant/jiosaavn-api-rs

0.0 0.0 0.0 101 KB

[WIP] ๐ŸŽต An Unofficial wrapper for the Jio Saavn API written in Rust.

License: MIT License

Rust 99.82% Dockerfile 0.18%

jiosaavn-api-rs's Introduction

JioSaavn API

A wrapper for JioSaavn API written in Rust programming language ๐Ÿฆ€.

Note

This project is for educational purposes only. The author of this project is not responsible for any misuse of this API. Use it at your own risk.

๐Ÿ”จ Local Development

  • Rust should be installed on your system. If not, then install it from here.
git clone https://github.com/rajput-hemant/jiosaavn-api-rs
cd jiosaavn-api-rs
  • Run the following command to run the project.
cargo run
  • Run the following command to build the project.
cargo build

Deploying your own instance

Build and Run the Docker Image (Recommended)

Warning

You need to have Docker installed on your system. You might need to run the following commands with sudo depending on your system.

  • Start Docker daemon (Skip if already running)
sudo dockerd
  • Build the image
docker build -t jiosaavn .
  • Run the image
docker run -p 8080:8080 jiosaavn
  • Stop the container
docker ps
docker stop <container-id>
cargo install cargo-shuttle
  • Make sure to change the main.rs file to the following:
// #[tokio::main]
#[shuttle_runtime::main]
// async fn main() {
async fn axum() -> shuttle_axum::ShuttleAxum {
    // tracing_subscriber::fmt::init();

    let router = Router::new()
    ...

    // let addr = "[::]:8080".parse().unwrap();

    // tracing::debug!("๐Ÿš€ Server listening on {}", addr);
    // axum::Server::bind(&addr)
    //     .serve(app.into_make_service())
    //     .await
    //     .unwrap();

    Ok(router.into())
}
cargo shuttle start
cargo shuttle deploy --allow-dirty
curl -L https://fly.io/install.sh | sh
  • A fly.toml file will be automatically generated. fly launch comman which will ask a few questions to set everything up.
fly launch --name jiosaavn
  • Deploy the app
fly deploy

๐Ÿ“œ License

This project is licensed under the GPL-3.0 License - see the LICENSE file for details.

๐Ÿฆพ Contributors:

jiosaavn-api-rs's People

Contributors

rajput-hemant 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.