This is the server side for my makers final team project with @louballantyne, @cspoppuppy and completed over a 2 week period.
To run the app please go to the client side repo here and follow the README.
- Built in Node.js with Express with MongoDB
- The API is hosted on Heroku at [https://parrot-party-api.herokuapp.com]
- To make an API request, append the endpoint from the routes below to the link above.
Endpoint | Functionality | Deployed |
---|---|---|
User Controller | ||
POST /api/users | Create new user | ✔️ |
Sessions Controller | ||
POST /api/sessions | Create new session | ✔️ |
DELETE /api/sessions/:sessionId | Destroys the session | ✔️ |
Upload Controller | ||
POST /api/uploads | Uploads photo | ✔️ |
GET /api/uploads | Returns photo | ✔️ |
Parrot Controller | ||
POST /api/parrots | Create a new parrot listing | ✔️ |
GET /api/parrots | Return parrots | ✔️ |
GET /api/parrot/:parrotId | Return the parrot of :id | ✔️ |
PATCH /api/parrots/:parrotId | Update parrot geocode | ✔️ |
Appplication Controller | ||
POST /api/parrot/:parrotID/applications/ | Create a new adoption application | ✔️ |
GET /api/parrot/:parrotID/applications/ | Return adoption applications | ✔️ |
GET /api/parrot/:parrotID/applications/:applicationId | Return the application with :id | ✔️ |
PATCH /api/parrot/:parrotID/applications/:applicationId | Update application as approved | ✔️ |
Libraries used include:
- aws-sdk
- multer
- multer-s3
- uuid
- mongoose for MongoDB
External APIs: