SkillAgentSearch skills...

Badgify

🌀 Badgify is an easy-to-use API for generating online custom GitHub badges

Install / Use

/learn @siloxa/Badgify
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

<p align="center"> <img src="https://badgify.thex.solutions/api/counter/github/repo/shuoros/badgify?title=Badgify Visits" align="center" alt="badgify" /> </br> </br> <img src="https://user-images.githubusercontent.com/45015114/157028899-efb256dd-efe6-47a8-895d-86a61f4f31c6.png" align="center" alt="badgify" /> <h2 align="center">Badgify</h2> <p align="center">Is an easy-to-use API for generating online custom badges and GitHub profiles' summaries and repositories' reports as SVG.</p> </p> <p align="center"> <a href="https://github.com/shuoros/badgify/releases/tag/v1.2.0"> <img src="https://badgify.thex.solutions/api/badge/link?title=badgify%20v1.3.0&icon=github&size=m&bg=random" /> </a> <a href="https://github.com/shuoros/badgify/search?l=java"> <img src="https://badgify.thex.solutions/api/badge/link?title=18&icon=java&size=m&bg=random" /> </a> <a href="https://github.com/shuoros/badgify/blob/main/LICENSE"> <img src="https://badgify.thex.solutions/api/badge/link?title=MIT&icon=scale-balanced&size=m&bg=random" /> </a> <a href="https://github.com/shuoros/badgify/releases/tag/v1.2.0"> <img src="https://badgify.thex.solutions/api/badge/link?title=%D8%A8%D8%AF%D8%AC%DB%8C%D9%81%D8%A7%DB%8C%20%D9%86%D8%B3%D8%AE%D9%87%20%DB%B1.%DB%B3.%DB%B0&icon=github&size=m&dir=rtl&bg=random" /> </a> <p align="center"> <a href="https://github.com/shuoros/badgify/issues/new/choose"> <img src="https://badgify.thex.solutions/api/badge/title?title=Reoprt%20Bug&bg=gray&size=m&theme=edge" /> </a> <a href="https://github.com/shuoros/badgify/issues/new/choose"> <img src="https://badgify.thex.solutions/api/badge/title?title=Request%20Feature&bg=gray&size=m&theme=edge" /> </a> <a href="#contribution"> <img src="https://badgify.thex.solutions/api/badge/title?title=Contribute&bg=gray&size=m&theme=edge" /> </a> <a href="#contents"> <img src="https://badgify.thex.solutions/api/badge/title?title=How%20To%20Use&bg=gray&size=m&theme=edge" /> </a> </p> <p align="center"> If you like this project, please buy a cup of coffee for me=))☕ </p> <p align="center"> <a href="https://commerce.coinbase.com/checkout/6e1472f5-3481-4949-84cf-a915e0cb8d0c"> <img src="https://badgify.thex.solutions/api/badge/link?title=Donate%20With%20Crypto&icon=hand-holding-dollar&bg=ef730f&size=m&theme=edge" /> </a> </p> <p align="center"> <img src="https://badgify.thex.solutions/api/badge/icon?icon=heart&bg=fff&color=f23d96&size=s" /> & <img src="https://badgify.thex.solutions/api/badge/icon?icon=peace&bg=fff&color=0286a9&size=s" /> </p> <p align="center"> <a href="#"> <img src="https://badgify.thex.solutions/api/badge/link?title=ENGLISH&icon=flag.us&bg=254a79&size=m" /> </a> <a href="https://github.com/shuoros/badgify/tree/main/docs/READMES/FA.md"> <img src="https://badgify.thex.solutions/api/badge/link?title=%D9%81%D8%A7%D8%B1%D8%B3%DB%8C&icon=flag.ir&bg=fff&size=m" /> </a> </p>

What Is In V1.4.0

  • JHipsetrize it! =))

Contents

Install and Run

Requirements

Having at least java-11 on your machine installed would be best.

Build

Packaging as jar

To build the final jar and optimize the Badgify for production, run:

./mvnw -Pprod clean verify

This will concatenate and minify the client CSS and JavaScript files. It will also modify index.html so it references these new files. To ensure everything worked, run:

java -jar target/*.jar

Packaging as war

To package Badgify as a war in order to deploy it to an application server, run:

./mvnw -Pprod,war clean verify

Test

To launch Badgify's tests, run:

./mvnw verify

Then navigate to http://localhost:8080 in your browser.

Code quality

Sonar is used to analyse code quality. You can start a local Sonar server (accessible on http://localhost:9001) with:

docker-compose -f src/main/docker/sonar.yml up -d

Note: I have turned off authentication in src/main/docker/sonar.yml for out of the box experience while trying out SonarQube, for real use cases turn it back on.

You can run a Sonar analysis with using the sonar-scanner or by using the maven plugin.

Then, run a Sonar analysis:

./mvnw -Pprod clean verify sonar:sonar

If you need to re-run the Sonar phase, please be sure to specify at least the initialize phase since Sonar properties are loaded from the sonar-project.properties file.

./mvnw initialize sonar:sonar

Using Docker to simplify development (optional)

You can use Docker to improve your JHipster development experience. A number of docker-compose configuration are available in the src/main/docker folder to launch required third party services.

For example, to start a mysql database in a docker container, run:

docker-compose -f src/main/docker/mysql.yml up -d

To stop it and remove the container, run:

docker-compose -f src/main/docker/mysql.yml down

You can also fully dockerize your application and all the services that it depends on. To achieve this, first build a docker image of your app by running:

npm run java:docker

Or build a arm64 docker image when using an arm64 processor os like MacOS with M1 processor family running:

npm run java:docker:arm64

Then run:

docker-compose -f src/main/docker/app.yml up -d

When running Docker Desktop on MacOS Big Sur or later, consider enabling experimental Use the new Virtualization framework for better processing performance (disk access performance is worse).

For more information refer to [Using Docker and Docker-Compose][], this page also contains information on the docker-compose sub-generator (jhipster docker-compose), which is able to generate docker configurations for one or several JHipster applications.

APIs

Label Badge

GET http://localhost:8080/api/badge/lable

OPTIONS

<details> <summary>👀 Example</summary>
http://localhost:8080/api/badge/label?text=Badgify&fontColor=lavender&size=l&theme=simple&backgroundColor=indigo&icon=github

image

</details>

Icon Badge

GET http://localhost:8080/api/badge/icon

OPTIONS

<details> <summary>👀 Example</summary>
http://localhost:8080/api/badge/icon?fontColor=lavender&size=l&theme=simple&backgroundColor=indigo&icon=github

image

</details>

Text Badge

GET http://localhost:8080/api/badge/text

OPTIONS

<details> <summary>👀 Example</summary>
http://localhost:8080/api/badge/text?fontColor=lavender&size=l&theme=simple&backgroundColor=indigo&text=Badgify

image

</details>

Counter Badge

for repository

GET http://localhost:8080/api/badge/counter

OPTIONS

  • id: String (required)
  • type: repository (required)
  • text: String
  • fontColor: Color
  • backgroundColor: Color
  • size: Size
  • theme: Theme
<details> <summary>👀 Example</summary>
http://localhost:8080/api/badge/counter?fontColor=lavender&size=l&theme=simple&backgroundColor=indigo&type=repository&icon=github&id=Badgify

image

</details>

Social Badge

GET http://localhost:8080/api/badge/{social}/{id}

OPTIONS

<details> <summary>👀 Example</summary>
http://localhost:8080/api/badge/twitter/shuoros

image</details>

Supported Socials

app-store

http://localhost:8080/api/badge/app_store/{id}

image

behance

http://localhost:8080/api/badge/behance/{id}

![image](https://github.com/shuoros/badgify/ass

View on GitHub
GitHub Stars11
CategoryDevelopment
Updated1y ago
Forks4

Languages

Java

Security Score

80/100

Audited on Aug 28, 2024

No findings