w00t, just got the major refactor branch of NodeKit (github.com/small-tech/nodekit) running the Hello Count example for the first time.
Been refactoring the hell out of NodeKit recently to take it from prototype to maintainable app.
Nice to have a little win.
Now to find all the other things that are no doubt broken :)
#NodeKit #SmallTech #NodeJS #server
GitHub - small-tech/nodekit: A Small Web server.
A Small Web server. Contribute to small-tech/nodekit development by creating an account on GitHub.GitHub
Aral Balkan
in reply to Aral Balkan • • •Yay! WebSocket routes (and the simple chat example) are working again too :)
#NodeKit #SmallTech #refactor
Endless Mason
in reply to Aral Balkan • • •Aral Balkan
in reply to Endless Mason • • •Endless Mason
in reply to Aral Balkan • • •Aral Balkan
in reply to Endless Mason • • •Aral Balkan
in reply to Aral Balkan • • •Here’s what the one for the simple chat example looks like:
github.com/small-tech/nodekit/…
nodekit/chat.socket at main · small-tech/nodekit
GitHubEndless Mason
in reply to Aral Balkan • • •Aral Balkan
in reply to Endless Mason • • •Aral Balkan
in reply to Aral Balkan • • •Besides the goal of having everything nicely encapsulated and unit tested, the major difference in this refactor is that the production and development servers have separate loader and main processes.
The prototype was a real jumble and littered with conditionals. Once I start working on the dev server I’ll likely pull out some common base functionality but my goal is to keep the production server as simple as possible.