My private website which uses GitHub API to present all of my favorites projects. You can also leave me a message.
You can use the GitHub GraphQL API to retrieve your data. Playing around with the following query in the GraphQL API Explorer https://developer.github.com/v4/explorer/
query{
repositoryOwner(login: "larapollehn") {
... on ProfileOwner {
pinnedItemsRemaining
itemShowcase {
items(first: 6) {
totalCount
edges {
node {
... on RepositoryInfo {
homepageUrl
}
... on Repository {
openGraphImageUrl
name
description
url
languages(first: 3) {
totalCount
edges {
node {
name
}
}
}
... on RepositoryInfo {
homepageUrl
}
}
}
}
}
hasPinnedItems
}
}
avatarUrl
}
}
I use Travis-CI to automate my deploying process.
First time:
- Install Ruby and Gem on your local computer:
sudo apt install ruby ruby-dev -y
- Install Travis CLI:
sudo gem install travis
- Login:
travis login --pro
For every other project
- Generate SSH key for deploying purpose:
ssh-keygen -t rsa -b 4096 -f deploy_rsa
- Add public key to deploy server:
ssh-copy-id -i deploy_rsa.pub lara@larapollehn
- Encrypt private key and upload the encryption password to travis' server:
travis encrypt-file deploy_rsa --com
- Delete public and private key. Keep the encrypted private key
rm deploy_rsa deploy_rsa.pub
- Configure
.travis.yml
with
before_install:
- openssl aes-256-cbc -K $encrypted_db2095f63ba3_key -iv $encrypted_db2095f63ba3_iv -in deploy_rsa.enc -out deploy_rsa -d
- chmod 0600 deploy_rsa