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.
- Node ( Express API Starter )
- Redis for cache
- Axios for HTTP requests
- Mocha for testing
- Cheerio for DOM parse
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
yarn dev
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
yarn test