GithubHelp home page GithubHelp logo

bluejacket98 / my-blog Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 27.58 MB

The repository for this very blog.

License: MIT License

JavaScript 12.20% CSS 15.15% SCSS 72.53% TypeScript 0.11% Shell 0.02%

my-blog's Introduction

How To Start

Install node.js

Install node.js and configure related environment variables. Choose stable version of v14.17.5. https://nodejs.org/en/\ Check node and npm version by

node -v
npm -v

Make sure it shows

v14.17.5
8.1.0

Upgrade npm if version doesn't fit

npm install -g [email protected]

Install Gatsby CLI

Install Gatsby globally using npm

npm install -g gatsby-cli

Install dependencies

cd .\my-blog\
npm install

Configure Github GraphQL API

Create 'token.env' at root folder, with content in following format

GITHUB_LOGIN=BlueJacket98
GITHUB_PERSONAL_ACCESS_TOKEN=YOUR_TOKEN

Do not upload .env to Github

Generate token at Github by:\

  1. Settings
  2. Developer Settings
  3. Personal access tokens
  4. Generate new token
  5. Save token and paste in .env file

Build the project

cd .\my-blog\
gatsby develop

Explore

When console outputs

success Building development bundle - 0.534s

Go to

localhost:8000

in your browser.

Features

Main Page

  • List blogs with the background of its header picture.

  • Show title of the blog when hover on the picture.

  • Using 2-1-2-1-... layout

image-20211023124806151

homepage2

Blog

  • List of all blogs.
  • Display the category, title, abstract of each blog in a card.

image-20211023125227871

Blog Content

  • Display the content of the blog.
  • Support all syntax in markdown.
  • Support Latex display.

image-20211023125433691

image-20211023125441240

Projects

  • List all repositories in Github using Github GraphQL API.
  • Display each repository's title, about, star and fork numbers.

image-20211023125546793

image-20211023125551742

Portfolio

  • Display photos from Google Photos album.
  • Hosting backend service querying Google Photos API on Glitch.
  • List pictures in a two column waterfall (mansory) layout.

image-20211023125835992

image-20211023125840249

my-blog's People

Contributors

imedadel avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.