API for HospitAlert - built with PostreSQL and Node.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
db
migrations
models
routes
test
.gitignore
.travis.yml
README.md
app.js
config.js
hospitalert-seed.sql
package.json
server.js

README.md

HospitAlert API

https://hospitalert-api.herokuapp.com

API for HospitAlert built with PostgreSQL and Sequelize. Find the repo for the client here.

Tables

Users

  • GET (/users/dashboard) - uses Passport Basic Auth (for Demo Account only)
  • GET (/users/:name) - used for client-side searching (accepts full and partial matches)
  • POST (/users/facebook) - finds or creates account using client-side Facebok OAuth
  • DELETE (/users/:id)


Hospitalizations

  • GET (/hospitalizations/:userId)
  • POST (/hospitalizations)
  • PUT (/hospitalizations/:id)
  • DELETE (/hospitalizations/:id)


Friends

  • GET (/friends/:userId)
  • GET (/friends/new/:id)
  • POST (/friends)
  • PUT (/friends/:id)
  • DELETE (/friends/:id)

Technologies

  • PostgreSQL
  • Sequelize
  • Node/Express
  • Mocha/Chai Testing
  • Continuous Integration with Travis CI