mayktso icon indicating copy to clipboard operation
mayktso copied to clipboard

WIP: Refactoring

Open BigBlueHat opened this issue 8 years ago • 7 comments

This one goes on top of host-out-of-www (once/if that's merged).

The objective is smaller bits of more easily testable/understandable/reusable code.

The goal is to end up with three chunks of code: server, client, and cli. The cli is the command line interface to client. The other two do what they say on the tin. :grin:

BigBlueHat avatar May 10 '17 21:05 BigBlueHat

👍 for merging this @csarven, very much needed. For the server, I hope we end up with different express middleware that can be used separately to run inboxes as a library.

mielvds avatar Oct 11 '19 07:10 mielvds

I'm also +1 to this but IIRC the changes broke https://github.com/csarven/ldn-tests/ . I'd prefer to merge once ldn-tests factors in the changes in mayktso. [mayktso was initially created for ldn-tests and then pulled out.. I don't want to track two different mayktsos in production.]

csarven avatar Oct 11 '19 08:10 csarven

Of course, but what is still needed for that? And https://github.com/csarven/ldn-tests/ should probably use this repo as a dependency/library?

mielvds avatar Oct 11 '19 08:10 mielvds

Besides bring this PR up to date with current master? ..

Off the top of my head, we need to be careful with the URL and file paths.

ldn-tests already includes maytkso in its package as a dependency.

csarven avatar Oct 11 '19 08:10 csarven

ldn-tests already includes maytkso in its package as a dependency. Ah misunderstood.

Maybe it's better to redo the refactoring on the current master with this PR as inspiration.

mielvds avatar Oct 11 '19 10:10 mielvds

@csarven the conflicts don't seem that bad, actually. You can use the "Resolve conflicts" button here to preview (and manage them too, actually).

I'm not familiar enough with ldn-tests to know what I've broken (or not) about it. You mentioned URL and file paths. Are there enough tests in that package that could confirm (or deny) any refactoring success?

I'm happy to take another crack at this. 😃

BigBlueHat avatar Oct 11 '19 18:10 BigBlueHat

@BigBlueHat Any plans to continu this?

mielvds avatar Feb 17 '22 09:02 mielvds