Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

What The Duck

Running locally

  • Update VITE_DM_SOCKET_URL in .env so that it doesn't point to the production environment (comment the line with the production URL, uncomment the other one)
  • Run pnpm dev:whattheduck from the root of this repository. This will start:
    • The DM Web interface
    • The DM API
    • A Web version of WTD, which in itself is limited as it can't use any mobile capabilities (like cover search)
  • EXPERIMENTAL: You can also run the native Android app by calling pnpm dev:whattheduck:android from the root of this repository. In this case you will need to edit your local public IP in capacitor.config.ts and capacitor.config.json. This will start:
    • The DM Web interface
    • The DM API
    • The native WTD Android app.

Android dev (WebSocket)

The dev:android script loads the app from the dev server (HTTP), so WebSocket connections (ws://) work via server.url on the same network. Prerequisites:

  1. Start the API (e.g. "Debug DM API + WTD Android" compound, or pnpm dev:whattheduck in another terminal)
  2. Run: pnpm dev:whattheduck:android or pnpm dev:android