TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

I used a codebase to develop an all-platform application

2 点作者 hamsterbase超过 1 年前
I have a read-it-later tool that I&#x27;ve been maintaining as a hobby for 2 years, supporting Mac, Linux, Windows, iOS, Android, and self-hosted Docker.<p>All these versions share the same codebase.<p>VSCF: I extracted part of the source code from VS Code and developed a framework called VSCF. It includes commands, themes, dependency injection, key bindings, IPC.<p>https:&#x2F;&#x2F;github.com&#x2F;hamsterbase&#x2F;vscf<p>Backend: hamsterbase will run the nodejs server backend locally. Based on vscf, I developed the underlying business logic, Such as file IO, SQLite, HTTP Server.<p>Frontend: Based on vscf, I used React for front-end development.<p>Referring to vs code, I use different communication channels for my frontend and backend on different platforms. For example, electron uses electron-ipc, the other side uses websocket.<p>To run nodejs on my phone, I use the nodejs-mobile, This is an open-source project that allows me to use Node.js on mobile devices.<p>https:&#x2F;&#x2F;github.com&#x2F;nodejs-mobile<p>Here&#x27;s how to stitch the modules together into an application<p>Self-hosted version = local server + frontend, using WebSocket for communication.<p>Desktop version = (Electron + local server + frontend ) + Self-hosted version<p>Mobile version = (nodejs-mobile + self-hosted version + webview) , Users use webview to access the UI. It looks just like a native application. They can even use their phones as servers to access data on their phones from a computer.

暂无评论

暂无评论