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: about 1 month ago
JSON representation
Expressjs server for an Audio Syncing Website
- Host: GitHub
- URL: https://github.com/ndbaker1/radio-site
- Owner: ndbaker1
- Created: 2021-02-12T23:55:23.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-02-23T18:16:41.000Z (over 5 years ago)
- Last Synced: 2024-12-30T04:27:19.082Z (over 1 year ago)
- Topics: expressjs, music-player, socketserver, tunneling
- Language: TypeScript
- Homepage:
- Size: 16.6 MB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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*