Skip to content

Demonstration of Wasp and Supabase working together, using Llama 3 and SDXL to generate greeting cards!

Notifications You must be signed in to change notification settings

wasp-lang/lazy-card-generator

Repository files navigation

Lazy Greeting Cards

Lazy Greeting Cards

Generate greeting cards from a simple description using the latest in AI technology. It uses Llama 3 to generate a catchy greeting card text and SDXL to generate the greeting card artwork!

This project is:

  1. fully open-source
  2. completely free to use and distribute
  3. comes with a ton of features out of the box!
  4. focused on free, open-source services, where possible

What's inside?

The project itself is built on top of some very powerful tools and frameworks, including:

  • 🐝 Wasp - a full-stack React, NodeJS, Prisma framework with superpowers
  • 🚀 Supabase - great PaaS product with DB, Storage etc.
  • 💅 TailwindCSS and ShadCN - for styling and components
  • 🤖 Replicate - simplest way to run AI models at a low cost

Because we're using Wasp as the full-stack framework, we can leverage a lot of its features to build the app:

  • 🔐 Full-stack Authentication - Email verified + social Auth in a few lines of code.
  • End-to-end Type Safety - Type your backend functions and get inferred types on the front-end automatically, without the need to install or configure any third-party libraries. Oh, and type-safe Links, too!
  • 🤖 Jobs - Run cron jobs in the background or set up queues simply by defining a function in the config file.
  • 🚀 One-command Deploy - Easily deploy via the CLI to Fly.io, or to other providers like Railway and Netlify.

You also get access to Wasp's diverse, helpful community if you get stuck or need help.

Getting Started

Simple Instructions

  1. First, to install the latest version of Wasp on macOS, Linux, or Windows with WSL, run the following command:

    curl -sSL https://get.wasp-lang.dev/installer.sh | sh
  2. Then, copy the env.server.example to .env.server and fill in the necessary environment variables. You'll need to set up a Google OAuth app, a Supabase account, and a Replicate account to get started.

  3. After you set up the env variables in the .env.server file, run the following to apply the migrations:

    wasp db migrate-dev
  4. Finally, run the following command to start the Wasp app:

    wasp start

About

Demonstration of Wasp and Supabase working together, using Llama 3 and SDXL to generate greeting cards!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published