Giter Club home page Giter Club logo

airgo's Introduction

"See a Need, Fill a Need!" ๐Ÿ’ช

-- Bigweld, Robots

airgo's People

Contributors

mottaquikarim avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

airgo's Issues

Implement Nav and Footer nested templates

This data ought to come from airtable, via a meta table (...or something, as part of this task you will have to make a decision and determine pros/cons of your solution).

The expectation is there ought to be two templates (representing header and footer) that are reused in all the other content templates

Implement image gallery template

This template is used with the following pages:

  • Gallery
  • Flowers
  • Photography
  • Limo
  • (arguably) accessories

All of these pages should use the same underlying template, so implementation of a single template knocks out a significant chunk of the work

Add support for reading `config.json` in the `refresh_data` script

Currently, the refresh_data script (cmd/refresh_data/main.go) hardcodes a look up to the Home table in airtable.

Background

config.json looks like this:

{
	"nav": [{
		"name": "Home",
		"key": "Home",
		"filenameRoot": "index"
	}],
}

As a part of this task, update the implementation of refresh_data to read the config.json file, iterate through each record in the JSON struct and query airtable for the tablename found in the key field.

Each key field lookup should generate a corresponding [filenameRoot].json file in the data folder.

Example

For example, if config.json looked as follows:

{
	"nav": [{
		"name": "Home",
		"key": "Home",
		"filenameRoot": "index"
	}, {
		"name": "About",
		"key": "About",
		"filenameRoot": "about"
	}],
}

and the airtable base has a second About table defined, then the script should generate TWO files in the data/ folder:

data
|-- index.json
|-- about.json

Since the first filenameRoot key is index and the second filenameRoot key is about.

Error handling

If the airtable API errors, ignore that error but do not allow the application to panic! So for instance, if there was no about table in Airtable, the expected output should still be:

data
|-- index.json

Baby's first PR *WIP*

  1. Clone this repo
  2. Read the README and ensure you are able to get the make targets working as expected
  3. Create a new branch: git checkout -b rumman/first-pr
  4. Update README and add yourself (and myself) under a new subsection (at the bottom) called CONTRIBUTORS.
  5. Each name should link to the person's github repo
  6. Push your branch (google this if unsure) and open a PR and add me to it.

Set up project shell + README

Build the bare minimum scripts, dockerfiles, and make targets necessary to easily get up and running with this project.

Document how everything ought to work in README.

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.