Want to build a real terminal app without using any AI? In this tutorial, we are building a command-line To-Do app completely from scratch using Node.js and TypeScript!
Instead of building a normal web page, we'll create a clean, interactive CLI (Command Line Interface) right inside your terminal. We will build custom terminal UI pieces like a task creation popup, interactive task lists, keyboard shortcut hints, and a custom logo—all coded by hand without relying on AI tools.
What you will learn:
○ How to set up a custom CLI tool using TypeScript and Node.js
○ How to build terminal UI components like task lists, dialogs, and footers
○ How to handle keyboard shortcuts and keymaps in the terminal
○ How to organize a clean command-line project from scratch
If you know basic JavaScript or TypeScript, you can easily follow along. Grab your coffee, open up your code editor, and let's start coding!
👇 Support the channel! If you enjoy this video and learn something new, please leave a like, drop a comment, and subscribe to codewithsadee for more hands-on coding tutorials.
Recommended NodeJS course: https://scrimba.com/learn-nodejs-c00ho9qqh6?via=codewithsadee
🔗 Essential Links:
○ Github gist: https://gist.github.com/codewithsadee/a71f0818b3d6e56f4e433c60b4c0b23f
○ Source code: https://www.patreon.com/codewithsadee/posts/source-code-to-175885265?utm_medium=clipboard_copy&utm_source=copyLink&utm_campaign=postshare_creator&utm_content=join_link
⏳ Timestamps:
0:00 - What were going to build.
1:11 - Project initial
5:48 - Setup OpenTUI for terminal UI
9:43 - Create and render app logo
14:54 - Create and render app footer
28:10 - Setup app shortcuts
33:44 - Create TaskCreateDialog
35:53 - Implement dialog show and hide feature
39:13 - Add task input field
41:55 - Implement task create functionality
45:40 - Render all tasks
58:25 - Implement task done functionality
1:01:07 - re-render task list after adding or completing a task
Top comments (0)