Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/brob/sanity-template-11ty-madlibs

A Sanity Starter for making a madlibs generator
https://github.com/brob/sanity-template-11ty-madlibs

Last synced: 7 days ago
JSON representation

A Sanity Starter for making a madlibs generator

Awesome Lists containing this project

README

        

# Madlib generator with Sanity, Netlify, and 11ty Serverless

This repository is a demo for this Smashing Magazine article.

[Try the Demo here](https://brob.dev/madlibs).

It creates a madlib generator that stores madlib templates and user-generated madlibs in a Sanity content lake. It builds static and server-rendered pages with 11ty, and uses Netlify On-Demand builders and serverless functions to add interactivity.

## Install and run

### Site setup

To set up and run the site locally, you'll need Netlify's CLI installed globally.

```bash
cd site
npm install
npm install -g netlify-cli
netlify dev
```

### Studio setup

```bash
cd studio
sanity install
npm start
```