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