Module Phase3_frontend

Phase 3: Frontend Setup

This phase handles the setup of the MoneyWise frontend application. It focuses on installing the required Node.js dependencies, which are essential for running, testing, and bundling the React Native application.

The main steps are:

Proper dependency installation is critical for ensuring the application builds correctly and runs without runtime errors.

val log_npm_error_suggestions : unit -> unit

Log common suggestions for npm-related failures. When an `npm install` command fails, it can be due to a variety of environmental factors. This function provides common, actionable suggestions to the user to help them troubleshoot the problem.

val setup_frontend : string -> Types.phase_result

Setup frontend by installing Node.js dependencies. This is the main function for the frontend setup phase. It orchestrates the verification of package.json and the execution of 'npm install'. It takes the project root directory as input and returns a phase_result.