Virtual Lolly screenshot

Virtual Lolly

Author Avatar Theme by Philhawksworth
Updated: 29 Oct 2021
114 Stars

JAMstack demo site - prerendered with serverless API fallbacks

Categories

Overview:

Virtual Lolly is a proof of concept website that allows users to create and send virtual lollipops to pep up their friends and loved ones. The site showcases a Jamstack approach, where newly created content is rendered from a content API, while a static render of it is being built into the site for the future. It is deployed and hosted on Netlify, and user-generated data is stored by Fauna DB via a serverless function. The site is generated (pre-rendered) by Eleventy, and newly created items are served via a client-side request to the content API, thanks to Netlify’s custom 404 routing.

Features:

  • Create and customize virtual lollipops
  • Send virtual lollipops to people
  • User-generated data storage using Fauna DB
  • Serverless function for storing data
  • Pre-rendered site generation using Eleventy
  • Custom 404 routing for serving new content

Installation:

To install the Virtual Lolly theme, follow these steps:

  1. Clone the repository using the command:

    git clone https://github.com/[repository-url]
    
  2. Install the necessary dependencies by running the command:

    npm install
    
  3. Set up environment variables by creating a .env file in the root directory of the project. Add the following variables:

    API_KEY=your-api-key
    DB_NAME=your-db-name
    
  4. Start the development server by running the command:

    npm run dev
    
  5. Visit http://localhost:3000 in your browser to access the Virtual Lolly site.

Summary:

Virtual Lolly is a proof of concept site that allows users to create and send virtual lollipops to brighten up someone’s day. It demonstrates the Jamstack approach, where content is rendered from a content API while being statically built into the site for future use. The site is hosted on Netlify and uses Fauna DB for user-generated data storage. It is built with Eleventy and utilizes Netlify’s custom 404 routing for serving new content. With its unique concept and modern architecture, Virtual Lolly is an interesting project that showcases the capabilities of Jamstack development.