Skip to content
Justin Forest edited this page Mar 13, 2024 · 29 revisions

Welcome to the treemap wiki!

This is an open source project for mapping urban trees.

Architecture

This is an API-first application, with backend written in Rust, and frontend written in TypeScript (Vue). For database, we use SQLite, for processing requests we use Amazon SQS (maybe a local queue implementation, also based on SQLite?).

Requirements

User experience:

  • The app must work on mobile phones.
  • The app lists trees on the visible rectangle.
    • Use Geolocation API to center the screen on start.
    • Use clustering to group multiple trees.
  • Clicking on a tree should bring a dialog with information on that tree.
    • That information includes GPS coordinates, genus, photos.
    • There is a Share button to share this exact tree.
    • There is a Subscribe button to follow changes made to that tree.
  • There is an Add button that opens a dialog to add a new tree.

Database:

  • Store individual trees with the following attributes: id, lat, lon, genus, year_planted, height.
  • Store multiple photos for each tree. Each photo has a full resolution URL and a thumbnail URL.
Clone this wiki locally