Northeastern-Electric-Racing / Argos

Our full-stack data visualization tool
GNU Affero General Public License v3.0
1 stars 0 forks source link

[Client] - Switching Data Source via Dependency Injection #197

Open Char2sGu opened 2 months ago

Char2sGu commented 2 months ago

Current Features

There's no data available for development. Several errors reported in console. image

Desired Additional Features

Leveraging Angular's DI system, we can have two different implementations of the data fetching services, and provide them in two modules:

The different implementations are provided in the corresponding modules, and we can switch from these two data sources by importing different modules. When combined with the environment.ts file, it is possible to automatically switch to production data for production build, and use mock data for development by default.

Example: https://github.com/Char2sGu/reply/tree/develop/projects/reply/src/backends

Screenshots (as needed)

No response