Lifecycle
Initialization
API Server is started. Starts express server listening in specified port
- file: src/index.ts
launch {
appModule = require("./Server")
...
}
Workspace Initilization
POST /api/workspace/initialize uri: WS_ROOT
- src/modules/workspace/index.ts
init {
uri := req.body
engine = DendronEngine.create(uri)
engine.init
return
}
Workspace Sync
This occurs when the engine is already running
- src/modules/workspace/index.ts
sync {
ws = req.body
engine = getWSEngine(ws)
notes, schemas = engine
return {notes, schemas}
}