-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Discussion: questions around Server implementation and refactoring #845
Labels
P0: critical
Mission critical
Comments
@linhtran174 is implementing this way |
Good stuff. Is it in fact less work/maintenance long term? OR more work? |
@0xSage less work/maintenance long term for sure |
dan-homebrew
modified the milestones:
0.4.0,
0.4.2,
API Endpoint at localhost:1337,
Jan Server,
Jan has Clean Architecture
Dec 11, 2023
Since #948, we even removed Object.values(FileSystemRoute).forEach((route) => {
ipcMain.handle(route, (event, ...args) => fs[route](...args)
}) |
Good stuff. Closing as this is addressed |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Related #798
Q: Given this refactoring, can Jan be run in the following modes:
electron-only
: I want to only run Electron with ipcMain process, not Fastify, i.e. is what we currently have still an option going forward?server-only
: I want to only run Fastify server process(es), not Electron.dual
: I want both desktop app & local port: routes to single process/web/dependecy-injection.js
fordual
mode, what is routed to and what is notdual
mode, what is the lifecycle of a user request (e.g. createAssistant)?Q: Can the shared logic be refactored out between Electron and Server implementations:
i.e.
Can this:
electron/handlers/fs.ts
Refactor into this:
Where Electron and Server share the same
common/fs.ts
implementation.Q: Can the api endpoints be auto generated? We're defining the entities anyway
The text was updated successfully, but these errors were encountered: