Skip to content

A MERN application that links vet services to livestock farmers. Vet assigned according to their previous ratings, nearness to customer and area of specialization. Backend API endpoints and some of the Frontend done using TDD.

Notifications You must be signed in to change notification settings

samuelmaina/mifugo-care

Repository files navigation

Vet Health

It is a web-based system that connect livestock farmer to vet services. Backend API endpoints are done using TDD using Jest.
Vet are assigned according to the their previous ratings, nearness to client(currently done at 6 km proximity) and area of specialization.
Vet have a dashboard where they are prompted to accept system assigned tasks. They can also manage all the accepted jobs at their dashboards.

Technologies

  • Node.js
  • MongoDB
  • Experssjs
  • Mongoose
  • Jest
  • Sendgrid for email sending
  • Lipa na Mpesa(local mobile money transfer platform).

Home page

homepage

Validation in the sign-up and login page

Error_handling

Validation in the user Request form

validation_of_the_user_input

Automatic client location or manual picking after request form submission.

automatic_location_pic_or_manual

Client being shown the status of different jobs posted when clicking the request timeline

showing_job_client_request

Validation in the vet detail creation or updation form. By default shown a map of the client location at the bottom.

input_validation

Vet being prompted to accept the system assigned task

system_assigned_task

Can view the submitted images

view_the_animal_pictures

Vet jobPull of the accepted jobs.

vet_can_view_map

Other application specifications can be view in the tests folder in the repo.

How to Run and start the backend / server

  1. install node js in the client development machine and ensure npm is installed by the command

    npm -v

    to check npm version

  2. install mongoDb

  3. install node_modules / dependencies as specified in the package.json at 311-project this is done by the command

    npm install --save

  4. At the Project root folder 311_project after installing the modules run the command

    node index.js

  5. The above command runs and starts the server at

    port 3100

How to Run and start the client build, running the build does not require any additional dependencies except a server to serve the build This is achieved in the following 3 steps.

  1. run the command below to install client server globally

    npm install -g serve

  2. Run the command below at the client root folder client to start the client server.

    serve -s build

  3. The last command shown above will serve static site on the port 5000. open http://localhost:3000 to view in the browser

    Like many of serve’s internal settings, the port can be adjusted using the -l or --listen flags:

    serve -s build -l 4000

    open http://localhost:4000 to view in the browser

How to Run and start the client in development mode

  1. The client has been bootstraped with

    npx create-react-app

  2. additional dependencies can be found at client/package.json file

About

A MERN application that links vet services to livestock farmers. Vet assigned according to their previous ratings, nearness to customer and area of specialization. Backend API endpoints and some of the Frontend done using TDD.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages