Just get MadVapes box mod kit.
510 Box Mod Kit
Make it without the battery and just attach your two USB wires instead.
The USB wires should be colored like this:
Note I used BLUE (instead of black for clarity) in my pic. Just attach the black from the cable where you see
BLUE.
If you want to try to coax more power out of a computer USB port you could attach up to a 200Ω resistor between wires 2 & 3.
Here's another simplified pic showing the very simple connections.
You'll note I prefer to use old modem/router power supplies of 5V@2.4-3A hardwired instead of power robbing USB stuff and 5V@2000mA AC/DC adapters which will only get about 1850mA to the atty which is not nearly enough for a Joye 510 (about 4V).
Note I'm not calling these '5V' PTs. To get 5V you need the PT
and the correct amount of current which will depend on the ohms of your atty.