Skip to content

carlobadini/carlobadini.com

Repository files navigation

This repository contains the source code of Carlo Badini's personal website. It's build using Sapper and Svelte and hosted on GitHub Pages.

Build site

⭐️ Getting started

Before the local development server starts, all data is fetched from Airtable, then the site opens at http://localhost:3000.

npm run dev

When deploying for production:

npm run export

Authentication

The following environment variables are required for both dev and export to fetch data from Airtable:

Environment variable Description
AIRTABLE_BASE_ID Base ID
AIRTABLE_API_KEY API key

These are saved locally in a .env file and using GitHub repository secrets.

A GitHub Actions workflow build the website on push and once every day, and published the __sapper__/export directory to the gh-pages branch.

📄 License