A NestJS-based backend service for tracking, storing, and analyzing GitHub repository traffic data using MongoDB and the GitHub API via Octokit.
This application provides a REST API designed to:
- Fetch repository traffic data (views, clones) from GitHub using the Octokit library.
- Store this data persistently in a MongoDB database via Mongoose.
- Expose endpoints for retrieving and potentially processing this data.
This backend serves as the data source for the GitHub Traffic Frontend, which visualizes the repository traffic data in charts.
$ npm install# development
$ npm run start
# watch mode
$ npm run start:dev
# production mode
$ npm run start:prod# unit tests
$ npm run test
# e2e tests
$ npm run test:e2e
# test coverage
$ npm run test:covThe API documentation (using Swagger) is available once the application is running:
http://localhost:3000/api
- Author - [Your Name]
This project is MIT licensed.