Code Monkey home page Code Monkey logo

chareads.com's Introduction

chareads.com

CircleCI 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 using the npm run deploy command. This is run automatically by CircleCI 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 the Goodreads
  • 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

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.