Giter VIP home page Giter VIP logo

chareads.com's Introduction

chareads.com

CI Percy.io Gitmoji

๐Ÿ™Œ Development

  • npm install installs all the site's dependencies
  • npm start runs Gatsby in dev mode on localhost:2000

๐Ÿ‘ท Being good

  • We use Typescript for type checking, and it's hella strict
  • We use Prettier for consistent code styling, set it up for your editor with these instructions to run on file save
  • npm run lint uses ESLint with a bunch 'o plugins to check you're not writing shit syntax
  • npm run test runs Jest for all the unit tests

๐Ÿš€ Deployment

The site is deployed to pouretrebelle.github.io/chareads.com on the gh-pages branch. This is run automatically by GitHub Actions for every commit to main, and at midnight every night.

Part of the build script runs a script to scrape the current video stats from the YouTube API, this is reliant on a YOUTUBE_API_TOKEN env var.

๐Ÿ”จ Scripts

  • npm run sync:videos scaffolds video content for recent YouTube videos via the API.
  • npm run sync:books scaffolds book content for recently-read books using Goodreads export data (download from here).
  • npm run sync:tbr imports data for unread Goodreads books, to add affiliate links to timestamp references

The video and book sync scripts take a count argument, for example use npm run sync:videos -- 2 to scaffold the two most recent videos.

chareads.com's People

Contributors

pouretrebelle avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

chareads.com's Issues

Full git file

The git repo is maxed out (100gb?) because of the daily image regeneration in gh-pages. I stopped regenerating them in #87 so this shouldn't be a problem going forward, but need to nuke all the history of the gh-pages branch to get the git file size down.

https://stackoverflow.com/questions/34657031/how-do-you-remove-a-branch-and-all-of-its-history-locally-and-remotely

97ad080 initial commit to branch

Tasks

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.