r/node • • Aug 02 '19

🖥🚀Made my first desktop app using Node, Electron, and React! ✏️Todo Editor - find and manage all the TODO comments in all your projects

344 Upvotes

46 comments sorted by

30

u/SpecificGeneral Aug 02 '19

The motivation I had for this app came from the fact that every time I sit down to code, I spend half an hour just deciding what to work on. I wanted to have all my tasks in one place. And I wanted to be able to click a task and see the relevant code for it.

This is my attempt a solution to that. It still doesn't have much features but I'm really excited with this prototype. I hope to get some feedback and advice on how to take it to the next level.

If you want to check out the code the repo is: https://github.com/ee92/todo-gui

6

u/Lispomatic Aug 03 '19

So simple and efficient! I'll DEFINITELY use it! And I hope to give thoughtful feedback to you soon. This will help enormously with my distraction issue.

3

u/GhostMcFunky Aug 03 '19

I’ve been wanting something exactly like this as a VS Code extension.

Any chance you could rework it as an extension?

1

u/RomanRiesen Aug 03 '19

There are about 10 Todo list extensions for vs code.

1

u/GhostMcFunky Aug 04 '19

That’s great. I’m not that slow.

None of them work like this. Most of them have, IMO relatively shitty UI interactions or require interaction with a separate file to manage them.

Having a UI to manage them integrated where all I need to do is add TODO: in my comments would be awesome.

2

u/loggingco Aug 04 '19

I use The extension “Todo tree” and it will automatically display all todo’s and fixme’s for you to click on

1

u/GhostMcFunky Aug 04 '19

I'm trying that out already. Don't like it as much as a dedicated sidebar but I'll play with it a while.

8

u/[deleted] Aug 02 '19

Hey you stole the design that I stole from every other code editor for my API Builder react/electron project 😂

https://imgur.com/a/DtpXOk6

5

u/SpecificGeneral Aug 02 '19

It looks nice! got a link?

2

u/[deleted] Aug 02 '19

Early work in progress and probably doing a full revamp soon to support serverless as my workflow for API has changed since i started building it.

1

u/RODDAL Aug 03 '19

Yes asking for a friend also

2

u/[deleted] Aug 03 '19

Literally all text editors look like that

6

u/b-e-t-a-w-o-l-f Aug 03 '19

A code project that helps you code projects. That is beautifully recursive, and an awesome build. congrads. also, TODO comments 🤘

1

u/SpecificGeneral Aug 03 '19

Thanks! It also uses recursion 🤯

11

u/xaniv Aug 03 '19

Make this into a VSCode extension and you got me

5

u/wallywally11 Aug 03 '19

There is a VS code extension for this. Pretty sure it’s just called “TODO”. Doesn’t look / function exactly like this, but it shows all todos and I think beings you to them on click.

3

u/xaniv Aug 03 '19

Nice, i'll look into it. Thanks 👍

9

u/moomooCow123 Aug 02 '19

This looks awesome! Great job.

1

u/angusmiguel Aug 02 '19

how did you configure electron to work with react?

1

u/SpecificGeneral Aug 02 '19

I used babel and webpack. It was mostly straight forward, but there a few nuances. You can take a look at the webpack config here

1

u/[deleted] Aug 02 '19

How do react and electron work together? I thought you used electron instead of react.

1

u/SpecificGeneral Aug 02 '19

Electron is basically just a chrome browser window that lets you use node to interact with the operating system. You can use React, Vue, Svelte, whatever to render the UI.

4

u/[deleted] Aug 02 '19

Electron just gives you a standalone version of chrome for you to bundle your app into its own application instead of a webpage. It gives you a webview to deploy your app to, be it just HTML/JS or React or whatever. You also have access to nodejs runtime for more system integration.

3

u/VadimKu Aug 03 '19

What am i missing Why not just use webstorm's or vs code's todo functionality ?

2

u/grady_vuckovic Aug 02 '19

Great job OP!

2

u/gametrashcan Aug 03 '19

Wow I love seeing work like this. Good job!

2

u/the_vjack Aug 03 '19

Neat and looks great!!

2

u/AmicableDragon Aug 03 '19

This is really cool. Well done OP.

2

u/[deleted] Aug 03 '19

WAY TO GO!

2

u/tettusud Aug 03 '19

Super good,

2

u/BaptisteViloin Aug 03 '19

Cool project! Have you considered developing a VSCode extension? I can't see myself using a tool just for this

2

u/[deleted] Aug 04 '19

Hey 👋 guys 👀 look at my 🙎‍♂️ app 🖥!

Emojis should never be used in a title, ever. Especially when trying to advertise. Last thing people want to think about is the product they are using being made by a child.

5

u/scaleable Aug 02 '19

Theres an awesome vscode plugin in the same lines

0

u/grady_vuckovic Aug 02 '19

That's besides the point

3

u/Panacean Aug 03 '19

Bringing attention to a similar solution should never be suppressed. Developers should always have consideration for the current landscape when creating solutions. Knowing about a similar capability can help drive/consolidate ideas or to avoid unnecessary duplication.

1

u/grady_vuckovic Aug 03 '19

I think the point is, that this is their first electron app. It doesn't have to be a totally unique idea, it's a learning exercise. A todo organiser is a good practice exercise.

1

u/Panacean Aug 03 '19

I appreciate that; every developer started somewhere. It's also important to foster creativity. Building upon this work by incorporating ideas seen elsewhere is a great way to hone your skills towards future projects.

1

u/scaleable Aug 02 '19

was just for curiosity

3

u/[deleted] Aug 03 '19

I just wish that electron was more resource efficient

2

u/memecaptial Aug 03 '19

This is worth using. Good job man

1

u/[deleted] Aug 03 '19

So your app in r/reactjs doesn't use Node?

1

u/[deleted] Aug 02 '19 edited Jun 20 '23

Unfortunately Reddit has choosen the path of corporate greed. This is no longer a user based forum but a emotionless money machine. Good buy redditors. -- mass edited with https://redact.dev/

7

u/tr14l Aug 02 '19

Guaranteed at least a third of a gig.

6

u/gketuma Aug 02 '19

Nah, you thinking of the memory consumption. Lol

1

u/Doctor_McKay Aug 03 '19

That's at least a half a gig.

0

u/[deleted] Aug 03 '19

[deleted]

1

u/SpecificGeneral Aug 03 '19

I think it depends what you want to do. But for this project is was pretty easy. There is only like ~100 lines of code that actually use the Electron API