Arch Design Explanation - Senior-Living/Rosi-Prototype GitHub Wiki

The activities are in the JSON file for the following reasons:

  • Simplicity for local use: JSON provides an easy and lightweight way to store and manage data, making it simple to handle locally during development.
  • Allows for the project to move between machines easily: JSON is a portable format, so the project can be easily transferred and used across different machines without requiring complex setup or dependencies.
  • Activities can be moved to a MongoDB database for production: Storing data in JSON format makes it easier to transition to a database like MongoDB in a production environment, as MongoDB uses a similar document-based structure.

Having multiple Python files offers the following benefits:

  • For simplicity: Keeping one file for routing and another for backend algorithms helps organize the code and makes it easier to manage and maintain.
  • Separation of concerns: It separates the logic for routing (handling requests) from the core algorithms (performing tasks), making the codebase cleaner and more modular.

More complex technologies like React, Tailwind, and Node.js aren't used for the following reasons:

  • Simplicity: Using simpler technologies makes the project easier to manage and maintain, especially for developers with less experience or for smaller teams.
  • Non-technical people can work with it: By sticking with simpler tools, the project becomes more accessible to non-technical people. They can easily understand and contribute to the project without needing to learn complex frameworks or tools.