Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/all-in-aigc/aiwallpaper
AI Wallpaper Generator
https://github.com/all-in-aigc/aiwallpaper
ai ai-wallpaper wallpaper
Last synced: 14 days ago
JSON representation
AI Wallpaper Generator
- Host: GitHub
- URL: https://github.com/all-in-aigc/aiwallpaper
- Owner: all-in-aigc
- License: apache-2.0
- Created: 2024-01-08T08:29:39.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2024-08-15T01:34:32.000Z (3 months ago)
- Last Synced: 2024-08-15T02:43:19.121Z (3 months ago)
- Topics: ai, ai-wallpaper, wallpaper
- Language: TypeScript
- Homepage: https://aiwallpaper.shop
- Size: 4.64 MB
- Stars: 536
- Watchers: 5
- Forks: 160
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# AI Wallpaper
AI Wallpaper Generator by [aiwallpaper.shop](https://aiwallpaper.shop)
## Live Demo
[https://aiwallpaper.shop](https://aiwallpaper.shop)
![demo](./preview.png)
## Quick Start
1. clone project
```shell
git clone https://github.com/all-in-aigc/aiwallpaper
```2. install dependencies
```shell
cd aiwallpaper
pnpm install
```3. init database
create your database use [local postgres](https://wiki.postgresql.org/wiki/Homebrew) or [vercel-postgres](https://vercel.com/docs/storage/vercel-postgres) or [supabase](https://supabase.com/)
create tables from sql at `data/install.sql`
4. set environmental values
put `.env.local` under `aiwallpaper` root dir with values list below
```
OPENAI_API_KEY=""POSTGRES_URL=""
AWS_AK=""
AWS_SK=""
AWS_REGION=""
AWS_BUCKET=""NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY=""
NEXT_PUBLIC_CLERK_SIGN_IN_URL=/sign-in
NEXT_PUBLIC_CLERK_SIGN_UP_URL=/sign-up
NEXT_PUBLIC_CLERK_AFTER_SIGN_IN_URL=/
NEXT_PUBLIC_CLERK_AFTER_SIGN_UP_URL=/STRIPE_PUBLIC_KEY=""
STRIPE_PRIVATE_KEY=""WEB_BASE_URI=""
```5. local development
```shell
pnpm dev
```open `http://localhost:3000` for preview
## Credit to
- [gpts.works](https://gpts.works) for code reference
- [nextjs](https://nextjs.org/docs) for full-stack development
- [clerk](https://clerk.com/docs/quickstarts/nextjs) for user auth
- [aws s3](https://docs.aws.amazon.com/AmazonS3/latest/userguide/upload-objects.html) for image storage
- [stripe](https://stripe.com/docs/development) for payment
- [node-postgres](https://node-postgres.com/) for data processing
- [tailwindcss](https://tailwindcss.com/) for page building## Other Things
you can contact me at Twitter: https://twitter.com/idoubicc
if this project is helpful to you, buy be a coffee.