My client owns the copyright to the software I wrote for them, so I obviously would not reuse any of that code for the new business. I would rewrite everything, which I would've done anyways because the original could've been better. Other than avoiding copyright infringement, is there anything i need to worry about?
There's nothing patentable or a trade-secret-able about the application... any software engineer who saw the interface and played around with it could conceivably implement the system. I do have a NDA with the client, but it is a general mutual NDA not specific to any job or software.
One worry I have is my client might try to sue me saying that either they own the solution somehow, or that I'm committing copyright infringement. I would be using the same framework/language to re-implement it, so some parts would definitely look similar (like the boilerplate I write using editor snippets). The client is richer than I am so I would lose any lawsuit.
Are there other worries I should consider?
Only had one client get pissy over it and they threatened and sent a nasty letter but once they talked to an attorney who told them there was no non-compete and nothing they could do except try and prove we used the service code (we didn't of course) it went away. Just because someone is richer doesn't mean they want to waste $100k+ chasing a maybe win.
Also in at least a couple of cases clients came to us to buy our version. It is business and they weren't in the software business but into selling shit. So all they cared about was better tools to make them more profitable. And if we learned some stuff solving a problem for them that led to a better product later they were happy. I think this was somewhat unique to e-commerce though as I doubt a SaaS client would've felt that way. So make sure you consider that.
Make sure your contract has you in the clear and then go for it. Get a lawyers ok if you feel you should just remember they are in the no risk game generally and Entrepreneurship is all about calculated risk, so not many lawyers strong suit. I have ignored lawyers advice as much as followed it, just having it though gave me the risk profile I needed so it was worth the conversation.