One word sums up the basis of all good conduct:
Lovingkindness.
Do not do to others what you do not want done to yourself.
Confucius