ran rails-api new . --database=postgresql
added necessary gems and ran bundle
secured secret token on config file
created user migration, ran rake db:create db:migrate, and everything works fine