Skip to content

Commit

Permalink
docs(docs): updated readme with better examples and descriptions
Browse files Browse the repository at this point in the history
  • Loading branch information
shanilhirani committed Jul 17, 2024
1 parent 5d1285f commit 1ed12d6
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 12 deletions.
57 changes: 45 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,40 +11,73 @@

## About

Go Credly is a Go App which enables users to obtain Certification Badges earned on Credly's Certification Platform.
Go-credly written in Go (hence the name) enables users to obtain Certification Badges earned on Credly's Certification Platform.

If your Credly Badges are made public then all you need is your Credly `username` and you'll be able to pull your badges programmatically.
All you need is your Credly `username` and _go-credly_ will fetch data from Credly's API, filter for active badges (can be overridden) and return either a Markdown or Standard Out.

### Use case

- You could use this tool to dynamically update a CV/Resume, Portfolios and Personal Websites using a Github Action, or just running the binary on a cron.
- You could use this tool to dynamically update a CV/Resume, Portfolios and Personal Websites using a Github Action, or just running the binary on a cron to fetch your credly badges.

## Prerequisites

- Credly with Public Badges
- Credly Account with Public Visibility enabled.
![alt text](docs/image.png)
- [Go](https://golang.org/dl/) installed (version 1.22 or later)
- Internet connection

## Installation

Clone the repository:
Download for Binary and Docker Image TBC.

Building from Source:

```bash
git clone https://github.com/yourusername/go_credly.git
cd go_credly
1. git clone https://github.com/yourusername/go_credly.git
2. cd go_credly
3. go build
4. chmod +x ./go-credly
```

## Usage

To run the application, execute the following command:
```bash
./go-credly fetch -h
This command fetches user badges from the Credly API using the provided user ID or username.

Usage:
go-credly fetch [flags]

Flags:
-h, --help help for fetch
-e, --include-expired Include expired badges
-o, --out-file string Write results to a file with Markdown extension. e.g BADGES.md
```

Example:

`go run main.go <yourcredlyusername>`
`./go-credly fetch shanilhirani`

Then _go-credly_ will attempt to fetch data from Credly's API and return the result in JSON to standard out.
```bash
2024/07/17 14:50:33 Displaying Credly Badges to stdout
Badge Name: AWS Certified Solutions Architect – Professional
Badge Description: Earners of this certification have an extensive understanding of designing technical strategies to accomplish specific business goals. They demonstrated the ability to balance best practices and trade-offs based on business context. Badge owners are able to design solutions across multiple platforms and providers.
Badge Image URL: https://images.credly.com/images/2d84e428-9078-49b6-a804-13c15383d0de/image.png
Badge URL: https://www.credly.com/org/amazon-web-services/badge/aws-certified-solutions-architect-professional
```

Example 2:

## Configuration
Creating a _CREDLY.md_ including expired badges.

TBC
`./go-credly fetch shanilhirani`

```bash
./go-credly fetch shanilhirani -e -o CREDLY
2024/07/17 15:00:27 Including expired badges
2024/07/17 15:00:28 Writing Credly Badges to CREDLY.md
2024/07/17 15:00:28 Credly Badges written to CREDLY.md
```

## License

Expand Down
Binary file added docs/image.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 1ed12d6

Please sign in to comment.