Use portable XAMPP (download from here)
You can install the server inside a portable hard drive or pen drive and then run the server from there.
My suggestion is use git version control to sync your code. And for database use common database and while connection connect db with IP of another computer.