Hello! ๐Ÿ‘ฉ๐Ÿปโ€๐Ÿฆฐ ๐Ÿค™๐Ÿป

I am Liuba, a Front-End Developer working with React. I love to create awesome stuff with code.


GitHub Repository Commits

View Demo ยท Report Bug

About The Project


landing page

The goal of this project is to create a web application that shows git commit history of this project.

Stack

plugins

Getting Started

#make sure you have npm installed
npm install npm@latest -g

#Clone the repo
gh repo clone liuba-larousse/gatsby-github-api-test

#Install NPM packages
npm install

#Insall Gatsby CLI globally
npm install -g gatsby-cli

#Start project
npm run start

#or
gatsby develop

Usage

Watch demo video

Features

  • โœ… GitHub API used

    • โญ Display profile info
    • โญ Display commit history
    • โญ Map out git repositories related to gatsby framwork
  • โœ… Search functionality with Apollo

Learnings

๐Ÿ’ก ๐Ÿ“– See what I have LEARNED building this project.

Toggle to see learnings here

Here are some things I learned while building this website:


๐ŸŒด Topic

๐Ÿฅฅ Tip to remember

๐ŸŒฟ Better code practice

๐Ÿ“– Reading resources


Gatsby

  • ๐Ÿฅฅ used gatsby-plugin-layout for setting consistent layouts across routes

  • ๐ŸŒด APOLLO

    • ๐ŸฅฅuseLazyQuery() function to query on click
    • ๐Ÿฅฅqql to write the query
    • ๐Ÿฅฅ had to run npm i @apollo/react-hooks
    • ๐Ÿ“– More about LazyQuery

Sass

  • ๐Ÿฅฅ change import s from "./header.module.scss" to import * as s from "./header.module.scss due to recent changes
  • ๐Ÿฅฅ store color varibles in a global.scss file for easy reuse

Git

  • ๐Ÿฅฅ ๐ŸŒฟ store access token in .env file and add .env to .gitignore otherwise github removes token

Contact

I am actively looking for a Junior Front End Developer position. Contact me if you think I can be a great addition to your organization or you just want to talk code.