Fixing promise case
Added deps
Added server base