Skip to content

botchway44/farm-simulator

Repository files navigation

CODING CHALLENGE

A farm building management application. The system consists of a Back-end REST API. The application will create farm buildings with farm units, and feed those farm units.

⚙️ Getting Started

Run the following commands to start the up

📚 FEEDING ALGORITHM

  • To Feed a unit
    • verify if the unit is alive, is not currenly feeding or is in the feeding interval
    • To verify if the if the unit is not currently feeding, we lock the currently fed unit, allow it to feed and unlock it
  • To Feed a Building
    • verify if the building is in the feeding interval

    • Go through all building units and feed them.

    • To verify if the if the building is not currently feeding, we lock the currently fed building, allow it to feed and unlock it

Built with

  • Nodejs, Express with Typescript
  • Sequelize
  • Postgress
  • Postman Collection - Use link to join Postman collection

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages