add client tests

including
1. user authentication login
2. post operation, update, delete

also add env script for dev mode