GithubHelp home page GithubHelp logo

davidyeiser / airtable-nextjs-blog Goto Github PK

View Code? Open in Web Editor NEW
37.0 3.0 3.0 1.79 MB

A quick look at how to pull data from Airtable onto your site with Next.js and Express.

JavaScript 100.00%
nextjs reactjs express react airtable

airtable-nextjs-blog's Introduction

⚠️ NOTE

This repository and companion tutorial have been retired. No further updates will be made. See the note on the tutorial for more information.


Tutorial

This is the companion repository for the tutorial:

How to Create a Blog with the Airtable API & Next.js.

Setup

You’ll need an Airtable account with an API key. The sample code is matched to a table structured like so:

Screenshot of Table in Airtable

Install

  1. Clone this repository and run:
npm install
  1. Then create a .env file and add your Airtable API key and Base ID to it like so:
AIRTABLE_API_KEY=keyXXXXXX
AIRTABLE_BASE_ID=appXXXXXX

Run

  1. First start the Redis server with:
redis-server
  1. Then Start Next with:
npm run dev

Now go to http://localhost:3000 and you should see your Airtable data. If you run into trouble, have any questions, etc. feel free to file an issue.

airtable-nextjs-blog's People

Contributors

davidyeiser avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

airtable-nextjs-blog's Issues

[question] How to insert images in Content field?

I’m intrigued by this blogging workflow!

I’m hoping to create something similar with Gatsby and just wondering how you managed to include images between the content paragraphs of some of your posts...

Would you mind explaining how to do that using the AirTable “Long Text” field?

Here are a couple posts that alternate images and text:

  1. https://davidyeiser.com/post/recSefJ6oGWCs57hd/bernheim-forest-giants
  2. https://davidyeiser.com/post/rectyUMZZmFOsMs4N/type-friday-002

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.