Skip to content

d-otis/rate-your-landlord-express-api

Repository files navigation

Express Version of Rate Your Landlord Backend

Start Dev Server

DEBUG=rate-your-landlord-express:* npm start

Todo

  • normalize JSON response so that it mirrors what rails backend serves
  • start with trying to roll my own
  • after that use Sequelize :-)
  • refactor project structure to mirror node-pg documentation?
  • add extra hacky attrs to reviews JSON
  • set random image for landlord from UNSPLASH like RoR
  • hacky landlord rating and property updates when reviews are created
  • enforce strict consistency with underscore vs camelCase
  • better error logging for records not being found
  • add status message, codes, re: success/failure and what was achieved or erroneous
  • validation for image_url using regex?
  • error check if landlord doesn't exist when creating a new property
  • replace updating of landlord and property rating with Postgres function

About

A JavaScript/Express iteration of my Rate Your Landlord MVP.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages