LofiAnime.com is a simple Next.js 13 app to generate lofi-anime inspired landscape images.
First, clone this repository:
git clone https://github.com/alpinecodex/lofianime.gitOpen the newly created lofianime project and install dependencies.
cd lofianime
npm installGo to your Vercel dashboard and create a new Postgres database. (You can also use other services like Supabase or PlanetScale. If you opt to use a MySQL database, you may need to alter the schema.prisma file. Alternatively, you could create a local database on your machine.)
Create an account on Upstash and create a Redis database.
Duplicate .env.example and create an .env file in the root of your directory. Add all required environment variables for this project:
- Create a NextAuth secret
- Create Google credentials for OAuth
- Add Vercel Postgres configuration
- Create a Replicate account and add your API key
- Add REST URL and access token for Upstash
Push schema to the database and generate Prisma client
npx prisma db pushRun the application locally.
npm run devThe application will be available at http://localhost:3000.
Your feedback and contributions are welcome! Please create an issue on this repository and describe any issues. Alternatively, fork this repository, make changes, and create a pull request.
- Next.js (Next 13 App Router)
- Vercel (serverless hosting)
- Upstash (serverless Redis rate limiting)
- Replicate (AI APIs—using SDXL model trained by Pietro Schirano)
- shadcn/ui (React component library)
- Vercel Postgres (serverless database hosting)
- Auth.js (Authentication)