Skip to content

banderson623/banjo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Banjo

Listen to music together (if you are on a mac and use spotify)

A simple way to listen to the same tracks on spotify together. Your personaly spotify account, in sync with all your friends.

Built with:

  • Electron,
  • React
  • TailwindCSS
  • Websockets and socket.io

Thans to Josh Laincz (@zohf) for his great icon!

Using this app.

  1. Download the DMG from the releases.
  2. Open the app, add your banjo-server address
  3. Update your name
  4. Head to your favorite room

Development

This is all very rough right now:

  1. Clone the repo and run yarn to get everything installed.
  2. Start the react-script based presentational layer first with yarn start.
  3. Next start the electron dev environment via yarn dev
  4. Optionally, grab the server from banjo-server to emulate interacting with the server.

Packaging it all up

This uses electron-builder, but I could not get it to first run react-scripts build which is fine, just you'll need to do the following:

  1. Run yarn run build to build the react layer.
  2. Run yarn run dist to build the distribution ready electron app.

Things that still need to be fixed

  • Live reloading from react-scripts loses the local state on refresh,
  • But it still saves it to disk for the next real start up. This is very annoying.
  • First-launch experience is a bummer, sometimes the state isn't saved correctly and the rooms are joined.

See Also

This requires a server running to keep all the client in sync. I built a simple one over at https://github.com/banderson623/banjo-server.

License

MIT