How can I and my friend work on the same project from different computers?

You will need to setup source control.
You can read more about it here: