Skip to content

Files

src

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Sep 22, 2023
Apr 25, 2025
May 8, 2025
May 23, 2022
Jul 10, 2023
Jun 22, 2023
Dec 13, 2024
May 5, 2025
Dec 24, 2024
May 26, 2022
Jul 10, 2023
Oct 9, 2023
Jun 23, 2023
Jun 23, 2023
Jul 10, 2023
Dec 4, 2023
Jul 10, 2023
Dec 8, 2022
Mar 18, 2022

src

This is where all the frontend code lives

Fyo Initialization

The initialization flows are different when the instance is new or is existing. All of them are triggered from src/App.vue.

New Instance

  1. Run Setup Wizard for init values (eg: country).
  2. Call setupInstance.ts/setupInstance using init values.

Existing Instance

  1. Connect to db.
  2. Check if Setup Wizard has been completed, if not, jump to New Instance
  3. Call initFyo/initializeInstance with dbPath and countryCode

Global Fyo

Global fyo is exported from initFyo.ts. Only code that isn't going to be unit tested using mocha should use this, i.e. code in src