mirror of
https://github.com/frappe/books.git
synced 2024-11-08 14:50:56 +00:00
.. | ||
assets | ||
components | ||
pages | ||
regional | ||
renderer | ||
setup | ||
styles | ||
utils | ||
App.vue | ||
errorHandling.ts | ||
importer.ts | ||
index.html | ||
initFyo.ts | ||
README.md | ||
renderer.ts | ||
router.ts | ||
shims-tsx.d.ts | ||
shims-vue-custom.d.ts | ||
shims-vue.d.ts |
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
- Run Setup Wizard for init values (eg:
country
). - Call
setupInstance.ts/setupInstance
using init values.
Existing Instance
- Connect to db.
- Check if Setup Wizard has been completed, if not, jump to New Instance
- Call
initFyo/initializeInstance
withdbPath
andcountryCode
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