ran rails-api new . --database=postgresql
added necessary gem and ran bundle install