An open API service indexing awesome lists of open source software.

https://github.com/rjryt/samp-music-streamer

SAMP music streamer
https://github.com/rjryt/samp-music-streamer

Last synced: 3 months ago
JSON representation

SAMP music streamer

Awesome Lists containing this project

README

          

# SAMP-Music-Streamer
The SAMP music streamer build for SAMP Roleplay servers.
We can stream playable(on SAMP) songs by using this project.

## Availability

- Can run on Pterodactyl panel
- Can Run on Replit
- Can Run on Heroku

## Requirement

- You need required disk space to store audio files.

## Installation

### Replit

- Fork repl from [@Somaliyo](https://replit.com/@Somaliyo/SAMP-Music-Streamer)
- Add Secrets
- `PORT` : Server port
- `AUTH` : Your Auth Code (Admin password)
- Run the server

### Pterodactyl

- Create new server on pterodactyl with the egg `nodejs generic egg`
- When panel is ready to use go to startup tab and add `GIT REPO ADDRESS` as `https://github.com/RJRYT/SAMP-Music-Streamer.git`
- Add `INSTALL BRANCH` as `main`
- Set `JS FILE` as `app.js`
- Goto server settings and reinstall server.
- After it add your panel port and Authcode to .env (Note: Rename `example.env` to `.env`) file
- Start the server
Your server is ready to use.

### Usage

When your server is marked as running. Open server on chrome. upload music as your choice.

##### Routes

- `yourdomain.com/` : Upload new music
- `yourdomain.com/list` : List all uploaded music
- `yourdomain.com/music` : List all uploaded music (For SAMP)
- `yourdomain.com/rename/:authcode` : To rename uploaded music. Only allowed who know Authcode
- `yourdomain.com/delete/:authcode/:filename` : to delete uploaded music. Only allowed who know Authcode eg: `yourdomain.com/delete/demoauthcode/demo.mp3`

## Developer credits

This script build by [RJRYT](https://rjryt.me)

## Copyrights

SAMP-Music-Streamer is licensed under the [Apache License 2.0
](https://github.com/RJRYT/SAMP-Music-Streamer/blob/main/LICENSE)

## Developer Contact

#### RJRYT
- [Website](https://rjryt.me)
- [Replit](https://replit.com/@Somaliyo)
- [Github](https://github.com/RJRYT)
- [Email](mailto:robinjratr@gmail.com)

### If you like this project please give us a 🌟 star.