Taking over an existing codebase: what we check in the first week

A day-by-day plan for inheriting someone else's app: access, backups, running it locally, reading the risks, then the first safe change.

The short answer

In the first week, do not change features. Get access to everything, prove you can restore a backup, run the app on a clean machine, read the code for its riskiest parts, and ship one small, boring change through the full deploy path. By Friday you should know what is safe to touch, what is fragile and what must be fixed first.

On this page
  1. Day 1: Can you reach everything?
  2. Day 2: Can you get the data back?
  3. Day 3: Can you run it on a clean machine?
  4. Day 4: Read the risky parts
  5. Day 5: Ship one small, boring change
  6. What should you have by the end of the week?
  7. What if the code is much worse than you hoped?
  8. Working with us

You have been handed an app you did not write. Maybe a developer left, an agency handed over, or you bought a product. The temptation is to start fixing things at once. Don’t. The first week is for finding out what you actually own.

This is the order we would follow. It works for a founder checking on a new developer as much as for an engineer taking over.

Day 1: Can you reach everything?

List every system the app touches and confirm that someone you trust holds the keys:

  • the code repository, and who can push to it;
  • the domain registrar and DNS;
  • the hosting account and any server logins;
  • the database, and where its backups go;
  • email sending, payments, analytics, error tracking, file storage;
  • every third-party API key the app uses.

Write the list down, with the owner of each account. Two things matter most: the account must be in the company’s name, not a former developer’s personal one, and you must be able to log in yourself. If either fails, that is your first task. Everything else can wait.

Then rotate what you can: change shared passwords and API keys that a former contractor knew. Do this after you have confirmed the app still runs, and one key at a time.

Day 2: Can you get the data back?

A backup you have never restored is a guess. Find out whether backups exist, where they are, how old the newest one is, and whether anyone has ever restored one. Then restore the latest into a throwaway database and look at it.

We do this every night for our own products, and we describe how in nightly restore drills. For a takeover, once is enough to start. If the restore fails, you have found the most important problem in the codebase before touching a line of it.

Also check where files live. Uploads on the server’s own disk are lost with the server, and a backup of the database alone will not bring them back.

Day 3: Can you run it on a clean machine?

Clone the repository on a computer that has never seen the project and follow the README. Count the steps that fail. Every undocumented step is knowledge that lives in someone’s head. Fix the README as you go.

You are looking for:

  • a working install and start from a documented list of commands;
  • sample or seed data, so you can use the app without production data;
  • configuration read from environment variables, with a list of which ones exist;
  • no secrets committed to the repository (search the history, not only the latest files).

If you cannot run it, you cannot safely change it.

Day 4: Read the risky parts

You cannot read everything. Read the parts where mistakes are expensive:

Area What to look for
Authentication and sessions Passwords hashed with a modern algorithm, session expiry, password reset that cannot be abused
Permissions Checks on the server, not only hidden buttons
Payments Webhooks verified, the same event handled once, money stored as integers
Database access Queries built with parameters, not string concatenation
Background jobs What runs on a timer, and what happens if two copies run
Tenant data If several customers share the app, how one is kept from seeing another’s rows

Also check how old the dependencies are. A framework several major versions behind, or a package that has been abandoned, is a risk you can size in a few hours. Run the package manager’s audit and read the result, but treat it as a prompt for questions, not a verdict.

Day 5: Ship one small, boring change

Pick a change nobody cares about: a typo, a log line, a small copy fix. Take it through the whole path: branch, review, tests, build, deploy, and check it live. Then practice the way back by rolling it off again.

This one change tells you more than any document. You learn whether the tests run, how long the pipeline takes, whether deploys cause downtime, and whether anyone notices when something breaks. We cover the deploy side in zero-downtime deploys.

What should you have by the end of the week?

  • A list of accounts and who owns each.
  • A restore you have actually done.
  • A README another person can follow.
  • A short risk list, ordered by cost of being wrong: data loss, security, money, uptime, then everything else.
  • One change shipped, and a rollback practiced.

The risk list becomes the plan. Resist the urge to put “rewrite” at the top of it; that decision needs evidence you will not have until week two or three.

What if the code is much worse than you hoped?

It usually is, in places. That is normal and not yet a reason to panic. Fix in this order: things that can lose data, things that can leak data, things that lose money, things that cause downtime, then things that slow developers down. Adding checks one at a time, as we did when we brought a grown codebase to zero lint violations, works better than a big-bang clean-up.

Working with us

If you have inherited an app and want a second pair of eyes on it, describe the situation and we will tell you what we would look at first and what we would leave alone. We take over, stabilize and keep building custom web applications and SaaS platforms. Start at contact, or read about our SaaS platform work.

Keep reading

Tell us what you want to build.

A product, a website, a search problem or a system that should work better. We reply with a plain answer and the first step.

A few sentences are enough (at least 20 characters).

We use your details only to answer your inquiry. See our privacy policy.