Skip to content

Bare bones CRA frontend for using Airtable as a CMS

License

Notifications You must be signed in to change notification settings

celestelayne/airtable_as_cms

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Airtable as CMS

Boilerplate code for a very simple frontend that uses Airtable as a CMS. Built using create-react-app. It simply fetches and displays the data along with the column headers.

Airtable view

airtable

Frontend view

frontend

How to run locally

yarn install and yarn start

In order to authenticate to Airtable API, you have to create a .env file in the root directory, in which you will list the following parameters:

REACT_APP_AIRTABLE_API_KEY=YOUR_AIRTABLE_KEY
REACT_APP_AIRTABLE_API_URL=https://api.airtable.com/v0
REACT_APP_AIRTABLE_BASE=YOUR_AIRTABLE_BASE_ID
REACT_APP_AIRTABLE_TABLE=YOUR_AIRTABLE_TAB_NAME

If you change the details above, you need to restart your server.

Read more about the Airtable API here.

How to style

I have created some very simple layout and sizing classes in App.css. The table is built with flexbox, so it should respond quite well to responsive environments.

Link to App.css

How to deploy

I am using Vercel (ex-Zeit) or Netlify. Don't forget to set up the env variables (both services offer a way to do that on their platform GUI).

AWSMLST

This is the proof of concept.

About

Bare bones CRA frontend for using Airtable as a CMS

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 77.3%
  • CSS 13.2%
  • HTML 9.5%