Skip to content

Commit 6d807f2

Browse files
committed
rename app
1 parent f7e2399 commit 6d807f2

File tree

8 files changed

+24
-24
lines changed

8 files changed

+24
-24
lines changed

Dockerfile

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ USER ghsum
1313
WORKDIR /var/github-summary
1414

1515
ENV TOKENS=""
16-
ENTRYPOINT ["java", "-Dapi-tokens=${TOKENS}", "-jar", "github-profile-summary.jar"]
16+
ENTRYPOINT ["java", "-Dapi-tokens=${TOKENS}", "-jar", "profile-summary-for-github.jar"]
1717
EXPOSE 7070
1818

1919
COPY --from=maven-build \
2020
--chown=ghsum:ghsum \
21-
/app/target/github-profile-summary-jar-with-dependencies.jar github-profile-summary.jar
21+
/app/target/profile-summary-for-github-jar-with-dependencies.jar profile-summary-for-github.jar

README.md

+13-13
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,39 @@
1-
# github-profile-summary
1+
# profile-summary-for-github
22

3-
## live at [https://github-profile-summary.com/](https://github-profile-summary.com/)
3+
## live at [https://profile-summary-for-github.com/](https://profile-summary-for-github.com/)
44

55
## screenshot
66
![screenshot](https://user-images.githubusercontent.com/1521451/34072014-4451dbf6-e280-11e7-90a7-32ad1f313541.PNG)
77

88
## run locally
9-
* `git clone https://github.com/tipsy/github-profile-summary.git`
10-
* `cd github-profile-summary`
9+
* `git clone https://github.com/tipsy/profile-summary-for-github.git`
10+
* `cd profile-summary-for-github`
1111
* `mvn install`
12-
* `java -jar target/github-profile-summary-jar-with-dependencies.jar`
12+
* `java -jar target/profile-summary-for-github-jar-with-dependencies.jar`
1313

1414
If no api-token is set, you only get ~50 requests/hour
1515

1616
To run the app with an api-token, first generate a token at
1717
[https://github.com/settings/tokens](https://github.com/settings/tokens),
1818
then launch the jar with the token:
1919

20-
* `java -Dapi-tokens=your-token -jar target/github-profile-summary-jar-with-dependencies.jar`
20+
* `java -Dapi-tokens=your-token -jar target/profile-summary-for-github-jar-with-dependencies.jar`
2121

2222
You can use a comma-separated list of tokens to increase your rate-limit
2323

2424
You can build a profile summary for any GitHub profile using `-Dunrestricted=true`:
2525

26-
* `java -Dunrestricted=true -jar target/github-profile-summary-jar-with-dependencies.jar`
26+
* `java -Dunrestricted=true -jar target/profile-summary-for-github-jar-with-dependencies.jar`
2727

2828
You can enable Google Tag Manager on your instance by setting `gtm-id`:
2929

30-
* `java -Dgtm-id=GTM-XXXXXX -jar target/github-profile-summary-jar-with-dependencies.jar`
30+
* `java -Dgtm-id=GTM-XXXXXX -jar target/profile-summary-for-github-jar-with-dependencies.jar`
3131

3232
## run locally with docker
3333

34-
* `git clone https://github.com/tipsy/github-profile-summary.git`
35-
* `cd github-profile-summary`
36-
* `docker build -t github-profile-summary .`
37-
* `docker run -it --rm --name github-profile-summary -p 7070:7070 github-profile-summary`
38-
* OR with a token `docker run -it --rm --name github-profile-summary -p 7070:7070 -e "API_TOKENS=mytoken1,mytoken2" github-profile-summary`
34+
* `git clone https://github.com/tipsy/profile-summary-for-github.git`
35+
* `cd profile-summary-for-github`
36+
* `docker build -t profile-summary-for-github .`
37+
* `docker run -it --rm --name profile-summary-for-github -p 7070:7070 profile-summary-for-github`
38+
* OR with a token `docker run -it --rm --name profile-summary-for-github -p 7070:7070 -e "API_TOKENS=mytoken1,mytoken2" profile-summary-for-github`
3939
* browse to http://localhost:7070

pom.xml

+3-3
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<modelVersion>4.0.0</modelVersion>
66

77
<groupId>io.javalin</groupId>
8-
<artifactId>github-profile-summary</artifactId>
8+
<artifactId>profile-summary-for-github</artifactId>
99
<version>1.0</version>
1010

1111
<properties>
@@ -138,10 +138,10 @@
138138
<version>1.1.3</version>
139139
<configuration>
140140
<jdkVersion>1.8</jdkVersion>
141-
<appName>github-profile-summary</appName>
141+
<appName>profile-summary-for-github</appName>
142142
<processTypes>
143143
<!-- Tell Heroku how to launch your application -->
144-
<web>java -jar -Xmx256M ./target/github-profile-summary-jar-with-dependencies.jar</web>
144+
<web>java -jar -Xmx256M ./target/profile-summary-for-github-jar-with-dependencies.jar</web>
145145
</processTypes>
146146
</configuration>
147147
</plugin>

src/main/kotlin/app/GhService.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ object GhService {
4343
scheduleAtFixedRate({
4444
repoServices.forEach {
4545
try {
46-
it.getRepository("tipsy", "github-profile-summary")
46+
it.getRepository("tipsy", "profile-summary-for-github")
4747
log.info("Pinged client ${clients.indexOf(it.client)} - client.remainingRequests was ${it.client.remainingRequests}")
4848
} catch (e: Exception) {
4949
log.info("Pinged client ${clients.indexOf(it.client)} - was rate-limited")

src/main/kotlin/app/UserCtrl.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ object UserCtrl {
5050
return false
5151
}
5252
return try {
53-
GhService.watchers.pageWatched(username, 1, 100).first().map { it.name }.contains("github-profile-summary")
53+
GhService.watchers.pageWatched(username, 1, 100).first().map { it.name }.contains("profile-summary-for-github")
5454
} catch (e: Exception) {
5555
false
5656
}

src/main/resources/layout.vm

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<meta name="description" content="Github Profile Summary is a GitHub visualization tool written in Kotlin">
99
<meta property="og:title" content="Github Profile Summary - Visualize your GitHub profile">
1010
<meta property="og:site_name" content="Github Profile Summary">
11-
<meta property="og:url" content="https://github-profile-summary.com">
11+
<meta property="og:url" content="https://profile-summary-for-github.com">
1212
<meta property="og:description" content="Github Profile Summary is a GitHub visualization tool written in Kotlin">
1313
<meta property="og:image" content="https://user-images.githubusercontent.com/1521451/33957306-8e1d8af0-e041-11e7-8e04-3de9e32868ba.PNG">
1414
<script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.7.1/Chart.min.js"></script>
@@ -33,7 +33,7 @@
3333
<footer>
3434
GitHub profile summary is built with <a href="https://javalin.io">javalin</a> <small>(kotlin web framework)</small> and
3535
<a href="http://www.chartjs.org/docs/latest/" target="_blank">chart.js</a> <small>(visualization)</small>.
36-
Source is on <a href="https://github.com/tipsy/github-profile-summary" target="_blank">GitHub</a>.
36+
Source is on <a href="https://github.com/tipsy/profile-summary-for-github" target="_blank">GitHub</a>.
3737
</footer>
3838
<span class="rate-limit">
3939
<span class="msg">The app is currently rate-limited<br>Please check back later</span>

src/main/resources/search.vm

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<h4>Couldn't build profile for <span class="search-term">$q</span></h4>
1010
<p>
1111
If you are <span class="search-term">$q</span>,
12-
please <a href="https://github.com/tipsy/github-profile-summary">star the repo</a> and try again.
12+
please <a href="https://github.com/tipsy/profile-summary-for-github">star the repo</a> and try again.
1313
<br>
1414
<br>
1515
This is necessary because GitHub has a 5000req/hour rate-limit which would be <br>

src/main/resources/user.vm

+1-1
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@
7575
},
7676
computed: {
7777
profileUrl: function () {
78-
return "https://github-profile-summary.com/user/" + this.user.login;
78+
return "https://profile-summary-for-github.com/user/" + this.user.login;
7979
},
8080
shareText: function () {
8181
return this.user.login + "'s GitHub profile - Visualized:";

0 commit comments

Comments
 (0)