Charca / astro-stable-diffusion

Demo of Astro + Stable Difussion using a Replicate API

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Astro + Stable Difussion (via Replicate)

Demo

🚀 Getting Started

  1. Clone this repository and install dependencies with npm install.
  2. Create a Replicate free account and get your API token from https://replicate.com/account.
  3. Copy .env.example as .env and paste your Replicate API token there.
  4. Start the project locally with npm run dev, or deploy it to your favorite server.
  5. Have fun! ✨

🧞 Commands

All commands are run from the root of the project, from a terminal:

Command Action
npm install Installs dependencies
npm run dev Starts local dev server at localhost:3000
npm run build Build your production site to ./dist/
npm run preview Preview your build locally, before deploying
npm run astro ... Run CLI commands like astro add, astro preview
npm run astro --help Get help using the Astro CLI

👀 Want to learn more?

Feel free to check Astro's documentation or jump into their Discord server. You can also follow Maxi on Twitter.

About

Demo of Astro + Stable Difussion using a Replicate API

License:MIT License


Languages

Language:Astro 51.8%Language:TypeScript 43.8%Language:JavaScript 4.2%Language:Shell 0.2%