Keep track of your pets and their activities!
- Neul Seo - neulseo2
- Reem Abi Ammar - RGA29
- Michael Underbrink - MUnderbrink90
- Bongi Sibanda - trialnerr
- Evan Griffith - EvanCG
- Adeeb Bayat - adeebbayat
- Emma Ijiogbe - emmagawd
- Marselena Romero - marsbird
- Howard Sun - howardCodeGit
- Lillian Tenn - tenn501
Clone repo (dev
= development, main
= production)
npm install
Run the dev server:
npm run dev
Build bundle.js
npm run build
Run production:
npm start
Excalidraw - High level Mongo Shema, and UI frameworks. Note: Excalidraw shared files do not retain history, so be careful!
#gobin-shark-scratch-project slack channel
[Iteration Project Brief] (https://docs.google.com/document/d/18PJVy5rqm_WkpULniAe3l4CnA7rD-iY7/edit)
Almost all requests defined in server/routers/petLoggerRouter.js
and server/controllers/petLogger/Controller.js
, so check there for source of truth.
POST request to add new dog
Method: POST
Endpoint: localhost:3000/api/dog
Body: { name, breed, age, gender }
Controller Method: addDog
Return: newDog object
GET dogs of user
METHOD: GET
Endpoint: localhost:3000/api/dog/:user
Controller method: getDogs
Response: array of matching dog objects
GET for all posts of dog
Method: GET
Endpoint: localhost:3000/api/post (query dogId)
Controller mtehod: getPost
Response: array of post objects [{postType, details, date}]
POST for new activity to dog
Method: POST
Endpoint: localhost:3000/api/post
Body: { dogID, postType, details }
controller Method: addPost
Response: New Post object
MongoDB backend is associated with trialnerr's account. IP Address allowlists will need to be explicitly indicated in order to read/write.