Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Optimised images in the repository #4

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
.git
.gitignore
README.md
node_modules/
dist/
6 changes: 6 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
FROM node:carbon-alpine
WORKDIR /www
COPY . /www
VOLUME ./:/www
RUN npm install
CMD npm run build && npm start
53 changes: 38 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ Site: https://gh-profile-summary.teamsz.xyz
- Chart.js
- Koa
- Github graphql api
- now.sh

## Screenshot

Expand All @@ -26,19 +25,7 @@ Site: https://gh-profile-summary.teamsz.xyz

![](https://user-images.githubusercontent.com/12621342/35951773-d1c9cf50-0cb7-11e8-80b2-08ae7d876533.png)

## Local run

> You need to have node environment!

### Install

``` bash
git clone https://github.com/Molunerfinn/node-github-profile-summary.git
cd node-github-profile-summary
npm install # or yarn
```

### Setup
## Setup

First generate a token at https://github.com/settings/tokens

Expand All @@ -57,19 +44,55 @@ HTTPS=false

**If you set `HTTPS=true`, then the websocket will connect the 443 port, it's useful for https production.**

## Local run

### Node.js

> You need to have node environment!

### Install

``` bash
git clone https://github.com/Molunerfinn/node-github-profile-summary.git
cd node-github-profile-summary
npm install # or yarn
```

### Run

```bash
npm run build
npm start
```

**Notice:** 8888 is the `KOA_PORT` in `.env` file

And then open the link `http://localhost:8888`, Done.

### Docker

> You need to have docker environment!

### Build

```bash
docker build -t github-profile .
```

### Run

```bash
docker run -it --rm --name github-profile -p 8888:8888 github-profile
```

**Notice:** 8888 is the `KOA_PORT` in `.env` file

And then open the link `http://localhost:8888`, Done.

## TODOS

- More useful charts
- Docker support
- ~~Docker support~~
- ...


Expand Down
Binary file modified build/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions now.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"version": 1,
"env": {
"GH_TOKEN": "@gh-summary-token",
"JWT_SECRET": "@jwt-secret"
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@
"chalk": "^2.0.1",
"copy-webpack-plugin": "^4.0.1",
"css-loader": "^0.28.0",
"dotenv": "^5.0.1",
"eslint": "^4.15.0",
"eslint-config-standard": "^10.2.1",
"eslint-friendly-formatter": "^3.0.0",
Expand Down
Binary file modified src/assets/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/views/Profile.vue
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ export default {
width calc(100% - 56px)
word-wrap: break-word
line-height: 20px
padding-left 4px
padding-right 4px
&.small-text
font-size 16px
&-status
Expand Down
4 changes: 4 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2282,6 +2282,10 @@ dotenv@^4.0.0:
version "4.0.0"
resolved "https://registry.yarnpkg.com/dotenv/-/dotenv-4.0.0.tgz#864ef1379aced55ce6f95debecdce179f7a0cd1d"

dotenv@^5.0.1:
version "5.0.1"
resolved "http://registry.npm.taobao.org/dotenv/download/dotenv-5.0.1.tgz#a5317459bd3d79ab88cff6e44057a6a3fbb1fcef"

duplexer@^0.1.1:
version "0.1.1"
resolved "https://registry.yarnpkg.com/duplexer/-/duplexer-0.1.1.tgz#ace6ff808c1ce66b57d1ebf97977acb02334cfc1"
Expand Down