DEV Community

Cover image for Build TUI application with GO (tview)
Bek Brace
Bek Brace

Posted on

Build TUI application with GO (tview)

Hey everyone! I hope you're all doing great. I’ve been getting some amazing feedback and thoughtful messages from you over the past few weeks, and I just want to say a big THANK YOU. It truly means the world to me to see how much you’re engaging with the content I’ve been creating.

Today, I’m thrilled to share a fresh new tutorial on my YouTube channel—one that I think you’re going to love! This time, I'm giving you something super practical: building a Text User Interface (TUI) application with Go. Specifically a simple yet powerful Inventory Management System [btw, I'm a credit manager by day and programmer by night :D].

I'm using go version go1.22.3 windows/amd64

Here's the video tut:

If you’ve ever wanted to step up your Go programming skills and explore how to create efficient terminal-based tools, this tutorial is for you. With the help of the incredible tview package (I introduce it early on in the video at 0:24), we’ll craft an intuitive interface that’s not only functional but also user-friendly. Think of it as a lightweight, no-fuss way to handle your inventory right from your terminal.

Here’s a quick overview of what you’ll learn:

Installation & Setup: I’ll guide you step by step to get your environment ready, from setting up Go to installing the tview package.

Building the TUI: Together, we’ll design and code the interface, making it interactive and visually appealing.

JSON for Data Storage: You’ll see how we use JSON to store inventory data. This ensures quick access and persistent storage, so your data remains intact even after you close the app.

Practical Usage: By the end of the tutorial, you’ll have a fully functional tool to help you manage stock efficiently—perfect for small projects or just honing your programming skills.

Image description

What’s awesome about this project is how approachable it is. Whether you’re a beginner looking to expand your knowledge or an experienced developer curious about TUIs, there’s something for everyone in this video. Plus, the skills you pick up here can be applied to so many other areas—from creating dashboards to building tools for automation.

I’d love for you to check out the tutorial and let me know what you think! Your feedback helps shape future content, and I’m always excited to hear what you’ve built after following along.

As always, thank you for your support :)
Code -> https://github.com/BekBrace/inv-tui-go
Happy coding, and see you in the comments section!

Top comments (0)