Skip to content
This repository has been archived by the owner on Jan 24, 2021. It is now read-only.

larapollehn/my-website

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

68 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status

My Website

My private website which uses GitHub API to present all of my favorites projects. You can also leave me a message.

GitHub API

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
    }
  }

CI/CD with Travis

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

About

My personal website using an express backend, vanilla JS and a Postgres database 💃

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published