A simple command line interface (CLI) application to fetch and display the recent activity of a GitHub user. This project helps practice working with APIs, handling JSON data, and building CLI applications. There are still missing features, feel free to contribute! Also, if you have any suggestions, please reach me: [email protected]
- Fetches recent activity of a specified GitHub user.
- Displays user activity directly in the terminal.
- Graceful error handling for invalid usernames or API failures.
- Built with TypeScript for type safety and scalability.
- No external libraries or frameworks used for fetching data.
To run the project, ensure you have the following installed:
-
Clone the repository:
git clone https://github.com/batugkocak/GitHub-User-Activity-by-roadmap.sh.git cd github-activity-cli
-
Install dependencies:
yarn install
-
Build the project:
yarn build
-
Run the CLI application:
yarn start <username>
Replace
<username>
with the GitHub username you want to fetch activity for.Example:
yarn start kamranahmedse
-
For development:
yarn dev <username>
-
Display help information:
yarn start --help
- Pushed 3 commits to batugkocak/github-cli
- Opened a new issue in /github-activity
- Starred batugkocak/github-activity
- The application uses the GitHub API to fetch user activity.
- API Endpoint:
https://api.github.com/users/<username>/events
- TypeScript ensures type safety and better developer experience.
Contributions are welcome! Please follow these steps:
- Fork the repository.
- Create a new branch:
git checkout -b feature/new-feature
- Commit your changes:
git commit -m "Add new feature"
- Push to the branch:
git push origin feature/new-feature
- Create a pull request.
This project is licensed under the MIT License.
This project was inspired by roadmap.sh/Github User Activity and serves as a learning exercise for building CLI tools and consuming APIs.