I'm not a developer but I can help from a business standpoint.
Contracts and deposits. Don't take on work from people who won't sign contracts and always try to get paid up front. Don't work out of their repo unless you get paid in advance.
Licensing. Try writing software that you can re-use for multiple clients. Just be sure you license the software to them in your contract. Most clients on small projects don't understand licensing or intellectual property ownership. It's easier to close small projects by recycling code. It's legal so long as you retain ownership of the source code but provide the client with a license.
Comments
I'm not a developer but I can help from a business standpoint.
Contracts and deposits. Don't take on work from people who won't sign contracts and always try to get paid up front. Don't work out of their repo unless you get paid in advance.
Licensing. Try writing software that you can re-use for multiple clients. Just be sure you license the software to them in your contract. Most clients on small projects don't understand licensing or intellectual property ownership. It's easier to close small projects by recycling code. It's legal so long as you retain ownership of the source code but provide the client with a license.