Skip to content

API that returns the total number of lines and the total number of bytes of all the files of a given public Github repository, grouped by file extension.

Notifications You must be signed in to change notification settings

IgordeOliveira/count-repo-lines

Repository files navigation

REPO COUNT LINES

AVAILABLE ON DOCKERHUB

API that returns the total number of lines and the total number of bytes of all the files of a given public Github repository, grouped by file extension.

This project uses:

  • Node ( Express API Starter )
  • Redis for cache
  • Axios for HTTP requests
  • Mocha for testing
  • Cheerio for DOM parse

Setup

Copy .env.sample as .env and fill in your redis server connection data

If you don't have a redis server, in the project there is a docker-compose for a local network, so docker-compose up -d

Then install the dependencies

yarn install

Development Server

yarn dev

How to use

Make a GET Request to http://localhost:5000/api/repo-count-lines?repo={{REPO_URL}}
REPO_URL need this in this formart: https://github.com/IgordeOliveira/count-repo-lines

Test

yarn test

About

API that returns the total number of lines and the total number of bytes of all the files of a given public Github repository, grouped by file extension.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published