Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/ndbaker1/radio-site

Expressjs server for an Audio Syncing Website
https://github.com/ndbaker1/radio-site

expressjs music-player socketserver tunneling

Last synced: 7 days ago
JSON representation

Expressjs server for an Audio Syncing Website

Awesome Lists containing this project

README

        

# Music Radio Site
A site build with `NextJS` and server hosted using `expressjs`, `localtunnel`, and `socket.io` in order to sync up listeners to the same active songs loaded from a Google Drive.

## Precompiled Run
```
curl -L https://github.com/ndbaker1/radio-site/raw/master/radio-site.tar > radio-site.tar && tar xvf radio-site.tar && rm radio-site.tar
cd radio-site
npm install
node server.js SUBDOMAIN PORT
```

## Setup
Install node modules, build NextJS static files, start express and localtunnel with a preferred subdomain ( which may not be guarenteed ).
```
npm install
npm run build
npm run start SUBDOMAIN PORT
```

## Extending
The `lib/loaders` directory contains the platform-specific implementations for the `loader.ts`.
> Currently only done for Google Drive and requires a credentials.json from the drive API

#### Known Issues:
> if the `sharp` module is missing from the require stack then first attempt installing it with `npm i sharp`. if not successfully, then diagnose the errors based on your OS and configurations.

npm ERR! gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
npm ERR! ../src/common.cc:24:10: fatal error: vips/vips8: No such file or directory

*Make sure that your system has libvips-dev, vips-dev, or the corresponding lib and that you have updated its core SDKs*