Work on both ip and local

Is it possible to develop a project that works both through SSH and locally on my machine?

I’m currently trying to create a Windows-based program that connects to my website, but it’s been quite challenging.

I have to build either the website or the program first, then create the other part afterward, and finally try to connect them together, which makes planning a bit complicated.

I also tried asking Cursor to upload and create the files via SSH, but that didn’t work.

Do you have any suggestions or better approaches for this?