Systems

Building an In-House ERP in Under a Year

In under a year, I built an in-house ERP for the manufacturing company where I work, with help from a great engineer on my team. It replaces QuickBooks and the paper processes around it. I also led the warehouse and sales floor through the switch.

This is for people stepping into their first tech lead role.

For about ten years, the company has run on paper. Sales reps take orders by email, phone, or in person, write them up, and walk the order over to the warehouse a few steps away. That works for a small business. But sales grew quickly, and the process stayed the same.

Over those years, inventory grew to around 100,000 part numbers, tracked by hand in QuickBooks, and the counts drifted away from what was actually on the shelves. Customer and vendor records picked up duplicates and errors along the way.

The bigger cost was people's time. Sales reps also handled purchasing. Before selling a part, they walked to the warehouse to check it was in stock, and if it wasn't, they walked to raw inventory to see whether we had the materials to make it.

When I took on this role, the ask was small: a simple system to keep warehouse production organized. It grew into sales order entry, purchase orders and invoicing, a replacement for our quoting system, inventory counts with location tracking, production monitoring, and packing and shipping status. More requests kept coming after that, and I turned many of them down to keep the project focused on the original goal.

Recommendations

Before I get into what the work has been like, here are a few recommendations if you're about to commit to a big project like this. You may already know some of them, and if so, you're off to a good start.

Get it in writing. Before you accept an offer or commit to a project, ask questions and get the answers in writing. You'll be glad you did once your plate starts to fill up.

Ask how the company actually runs. What software is in use today? What's the budget, and how flexible is it? If the company holds inventory, ask how that inventory is tracked. That question matters more than it sounds.

Meet the team first. If you'll be leading, get to know the people before you take on the project. If their skills don't match what the product needs, or you don't work well together, you'll spend your time on problems that could have been avoided.

Learn the company's culture. This is the important one, and I'll come back to why.

Onboarding

When I build, consult on, or work on any digital product, I take three things seriously: security, user experience, and internal organization and efficiency.

After onboarding, I got my first real look at how things ran. I expected problems, but not this many. The infrastructure had grown the same way the paperwork had: one fix at a time, with no backups worth the name, aging hardware we couldn't fully trust, and sensitive information like payment details and passwords handled in ways that weren't safe. There was more, but that isn't the point of this piece. The point is that before we could build the first version of an ERP replacement, some foundational problems needed attention first.

Fixing them wasn't my assignment. I could have taken it on, but the project already filled my plate, and overpromising helps no one. What a lead can do is raise issues like these when they put the current work at risk, and raise them the right way: clearly, with the right people, and framed as risk to the business.

Though, keep in mind, to not be a Nick. In Darknet Diaries episode 178, an engineer at Ubiquiti felt his security concerns were being ignored. Instead of escalating through proper channels, he stole company data, tried to extort the company, and was sentenced to six years in prison.

What matters most to me and to the product isn't always what matters most to upper management. That's where culture comes in, and it's what the next part is about.

Security and ROI

It's easy for companies to get overconfident about security. Most assume a breach won't happen to them, so security gets pushed down the list. But to build a product that's meant to scale, we first had to get the environment it runs in in order, starting with the physical setup: the hardware, the network, and the basics around them.

Pushing for fixes to problems people can't see yet is hard, especially with a non-technical audience. Keep in mind that this is a manufacturing company that has run on legacy systems and manual processes for a decade. The obvious place to start is a list: each current problem, how to fix it, what the fix prevents, and who it affects.

If that doesn't land, change the framing. I started thinking in terms of return on investment. What matters most to upper management? Numbers. That's where the leverage is.

Our company wants to expand into new industries, and larger customers in those industries hold their suppliers to much higher security standards because of the sensitive documents involved. That opened the conversation about CMMC 2.0, the cybersecurity certification the U.S. Department of Defense requires from its contractors. After many emails, meetings, and interviews, we brought on an MSP (managed service provider) to handle our IT issues and keep us compliant.

Now we can keep building on an environment that's much safer, and upper management is happy to be one step closer to bigger contracts.

Rebuild or patch

We're just getting started. Now for the actual product.

With AI, the hard part isn't building anymore. It's understanding the problem and finding the solution that will scale. The biggest mistake I see engineers make today is building without a plan that fits their system and their users.

Cisco recently backed one of its engineers, who proposed that a two-person team use AI to rewrite 98% of the company's legacy code in two years. One reaction I saw was, "Why not just use AI to fix the current system?" My answer is that sometimes the problem goes deeper than the surface.

Before my current role, I was a product engineer at a large digital signage company, where I worked on adding features and fixing bugs. The more bugs I fixed, the more I ran into the same issues slowing me down, and many traced back to our in-house components. One example: a page with a toggle that let users switch between grid and list views. We kept hitting problems with loading, performance, and syncing. We could patch each one, but the real problem was in the larger components underneath.

So why not ask AI to fix those? Because it isn't that simple. Those components were used across almost the entire codebase. Fixing the root problem meant changing every place that used them, each with its own special cases. Security work was just as deep: package managers we had to move off of entirely, and an old framework we had to migrate from.

When a change touches that much of the system, rebuilding can be the safer choice. You control what gets deployed instead of trusting that AI caught every case and invented nothing along the way.

That's why I keep saying it: have a plan before you build. A rebuild should be a decision you make on purpose, not something you're forced into because the foundation wasn't planned.

Inventory

In manufacturing, the biggest problem is usually inventory, and inventory has a lot of parts to it. Here are a few of the questions I had to answer while planning our solution.

How is inventory tracked?

  • Does our current part number system scale?
  • Is there a reference that explains what each code means, for future employees?
  • Is there a way to find where a part is located?

What inventory do we keep?

  • When we modify parts, what decides what gets kept and racked?
  • What decides what gets scrapped, and how do we track it?

Where does inventory come from?

  • How do we store and access the data we need for MTRs (mill test reports, the certificates that come with raw material)?

On top of that, we had existing data to clean up. You might think it helps to have something to start from. It doesn't. Existing data makes things more complicated. Picture thousands of part numbers and descriptions, built up over years in a legacy system, full of:

  • duplicates
  • typos
  • inconsistent units of measurement
  • incorrect descriptions

And every one of them is tied to existing customer orders, manufacturing tickets, and invoices.

Remember when I said it's sometimes better to rebuild than to patch? That applies here too. You start with the foundation. I spent my first few months understanding the problems that had built up over ten years, documenting them, and designing a solution.

Inventory was put wherever there was room and taken out whenever it was needed, with no trail. Counts were regularly negative. A full count happened every one to three months and took about a month by hand, so by the time it was finished, the numbers were already off by hundreds or thousands of units. Those errors don't stay in the warehouse. They spread to production, sales, and accounting.

So, just like with the system and the environment, we fixed the problem at the root and built up from there.

It isn't easy, and it's easy to get sidetracked. It makes sense to look at how larger companies handle inventory, but a lot of their solutions won't fit. We're a small-to-medium business. We don't have enterprise budgets, enterprise-weight systems, or an inventory big enough to justify automating it the way Amazon does.

I'll cover how we answered all of these in a follow-up article on the build itself. For now, here are the three that shaped everything else.

A location system that fits our warehouse. We mapped where every rack is and gave every spot a code that reads from big to small: warehouse, area, aisle, rack, bay. Here's a made-up example:

Location code W1-RCV-B-07-3: warehouse W1 (Warehouse 1), area RCV (Receiving), aisle B, rack 07, bay 3.

On the floor, people just say "B-07-3". The warehouse and area are usually obvious, so the last three parts are enough to walk straight to the shelf. We still store the full code, so the data stays clean if we add a second building or a new area later. Each part is tied to the locations where it sits, and the numbering leaves room for racks we haven't built yet.

A part number that describes itself. Instead of fixing the old list entry by entry, we rebuilt the part number system. Each section of a part number stands for one thing. Another made-up example:

Part number FLG-316-0200-US: category FLG (flange), material 316 (316 stainless), size 0200 (2 in), country of origin US (USA).

That reads as a flange, 316 stainless steel, 2 inches, made in the USA. Anyone can read a part number at a glance, and the description is generated from it automatically. The description no longer defines the part. The part number does.

Who can change what matters too. Upper management creates and maintains the codes. Sales can create new part numbers from existing codes, but can't invent new codes. If one is needed, they bring it to management. Most codes already exist, so this rarely slows anyone down. When sales creates a part number, the system works like a Rosetta Stone, translating their choices into the right codes, so new parts are created quickly and consistently.

Quantity from three numbers instead of one. We track each part three ways:

  • On hand: what's physically in the warehouse.
  • Committed: what's already reserved for customer orders and production.
  • On order: what we've ordered from vendors or scheduled to produce.

Together, these give us the most accurate picture of what's actually available. And instead of counting everything by hand every few months, quantities change only when stock actually moves: when it leaves the warehouse or comes in, recorded through the orders that move it (customer orders, vendor orders, and in-house production orders).

Closing

I could go deeper into the build itself, and I will in a follow-up. But if you take one thing from this article, it's that the people who use your system are your customers, and listening to them is what gets you to a build that works.

Spend time where they work. Learn how they think and what slows them down. The feature you're most excited about might be one they never touch. Build what they need, what makes their work faster and easier, and learn to say no to the rest.

I've watched engineers, and plenty of people with an AI subscription, build without a plan or any real understanding of who it's for. Mock up your ideas. Walk through the flows with the people who'll use them.

If you're leading a team, the same goes for your engineers. Trust them, and listen to them. They want this to succeed as much as you do.

Then build. (That's the easy part)