Giter VIP home page Giter VIP logo

animalhelperapi's Introduction

th

AnimalHelperApi

  • This is the animal helper api where user could find the nearby injured animals by using location and provide help to them , keep track of their pet health status and various other features. Ngo would have also have the functionality to keep track of the well being stary animals and get donation from the user so that they could provide the help to the those voiceless creatures. Doctor would also have various functionalities of saving the animal and keeping track of the animal status.

Location Functionality

  • As we are going to find the nearby animals , doctors and ngo , we have to get the real time locations of the user once they registers on the app.
  • In order to get this done , we are going the get the lovcaion of the entities and then convert the location into the latitude and longitude with the help of the geocoder module.
  • Once we get the latitude and longitude of point A and point B , we are going to run the hessian function over the lat and long of the both the points and use it to find the distance between two points.
  • If distance < 5 km , we are going show the animal , doctor or the ngo to the user.

Postman Test

Run in Postman

Framework

  • Node and express for the backend

Database

  • MongoDB as the database

Deployment

  • Heroku for the deployment

Functionalities

USER

  • SignUp
  • LogIn
  • getNearbyAnimal
  • reportInjuredAnimal
  • checkInjuredAnimalStatus
  • addUserPetRecord
  • getPetDetails
  • chosePetDoctor
  • updatePetSickStatus
  • donateFundsToNgo
  • getDonatedNgoList
  • adoptAnimal
  • getAdoptedAnimal

NGO

  • NgoSignUp
  • NgoLogIn
  • addStrayAnimals
  • getListOfAnimals
  • addAnimalforAdoption
  • getVaccinatedDetails

DOCTOR

  • DocterSignUp
  • DocterLogIn
  • nearbyAnimal
  • provideAnimalHelp
  • updatePetHealthCard
  • userPetCheckup
  • vaccinateStrayAnimals

ANIMAL

  • addInjuredAnimal
  • getInjuredAnimalList

Routes

  • USER
UserRouter.post("/SignUp", SignUp);
UserRouter.get("/LogIn", LogIn);
UserRouter.get("/getNearbyAnimal", getNearbyAnimal);
UserRouter.post("/reportInjuredAnimal", reportInjuredAnimal);
UserRouter.get("/injuredAnimalStatus", checkInjuredAnimalStatus);
UserRouter.post("/addPet", addUserPetRecord);
UserRouter.get("/petDetails", getPetDetails);
UserRouter.post("/updatePetStatus", updatePetSickStatus);
UserRouter.post("/choseDoctor", chosePetDoctor);
UserRouter.post("/ngoFund", donateFundsToNgo);
UserRouter.get("/donatedNgoList", getDonatedNgoList);
UserRouter.post("/adoptAnimal", adoptAnimal);
UserRouter.get("/getAdoptedAnimal", getAdoptedAnimal);
  • DOCTOR
DocterRouter.post("/docterSignUp", DocterSignUp);
DocterRouter.post("/docterLogIn", DocterLogIn);
DocterRouter.get("/nearByAnimal", nearbyAnimal);
DocterRouter.post("/animalHelp", provideAnimalHelp);
DocterRouter.post("/updateHealth", updatePetHealthCard);
DocterRouter.get("/getPatient", userPetCheckup);
DocterRouter.post("/vaccinateStray", vaccinateStrayAnimals);
  • NGO
NgoRouter.post("/ngo/signUp", NgoSignUp);
NgoRouter.post("/ngo/logIn", NgoLogIn);
NgoRouter.post("/ngo/strayList", addStrayAnimals);
NgoRouter.get("/ngo/getStrayList", getListOfAnimals);
NgoRouter.post("/ngo/addAdoptList", addAnimalforAdoption);
NgoRouter.get("/ngo/vaccDetails", getVaccinatedDetails);

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.