Skip to content
This repository has been archived by the owner on Oct 7, 2024. It is now read-only.

Use Airtable to catalogue books and update a markdown file with progress

Notifications You must be signed in to change notification settings

nabilkaz/airtableBookCatalog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Templated Book progress

A project to automate book updates from an Airtable base to a Github Profile. It does this by fetching records from an airtable base, formatting it using an Ascii percentage bar and generating a new markdown file based on a template. It is intended to be used with a Github Action to update the readme.

Features

Each feature resides in /utils and is used in app.js.

  1. Airtable uses the Airtable api to fetch records that match the field currently reading and returns the title and reading percentage fields.
  2. Percentage bar Ascii takes a percentage as a whole number and the unit length of the bar. It produces a bar that is displayed like this ███░░░░░░░░░░░░░░░░░░░░░░ 13%
  3. Template compiler takes the markdown file in template and replaces template variables {{ varName }} with the matching key value in a content variable. It then generates a readme.md file

Examples

Actual example of the current books I'm reading

█████████████░░░░░░░░░░░░ 54%  Dark Money 
███░░░░░░░░░░░░░░░░░░░░░░ 13%  Pedagogy of the Oppressed 
███████████████░░░░░░░░░░ 60%  Structuring Design 

About

Use Airtable to catalogue books and update a markdown file with progress

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published