CountMyCode

Date Started: April 2025 Date Ended: May 2025

Overview

CountMyCode is a tool that helps you count the lines of code in your project. It uses a simple command-line interface. Once you select which files to count, it spins up a web server to display the results.

This was a smaller and simpler project than I usually work on, but since I've started working with larger codebases, I think having a lightweight tool to audit code is really useful.

Usage

  • First, specify the repository you'd like to audit. You can do this in two ways:
  • Provide the path as an argument when running the application via the command line
  • If no path is specified, the application will prompt you to enter the path manually.
  • Select the files to audit by excluding any files or folders you don't want to include, such as auto-generated files or vendor directories.
  • Specify the names of any file types that aren't automatically detected.
  • View the audit results in your browser. The application starts a web server and opens the results in your default browser.

What I Learned

This project was simple, so I didn't learn a lot of new concepts. However, I used it as an opportunity to improve my understanding of proper file management and how to structure code in a clean, maintainable, and extensible way.

Screenshots

The first screen shown, prompting for the path to the repository

Screen One for CountMyCode

The second screen, prompting for the files to include or exclude from the audit

Screen Two for CountMyCode

The third screen, asking for the names of unrecognized file types

Screen Three for CountMyCode

The view of the audit in the browser

Audit for CountMyCode

Installation and Setup

See the GitHub README.md for instructions on installing and setting up CountMyCode.