Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/alephmatic/full-stack-ai
Generate a full-stack Next.js app from an AI prompt
https://github.com/alephmatic/full-stack-ai
ai copilot full-stack generator kirimase nextjs openai
Last synced: 3 months ago
JSON representation
Generate a full-stack Next.js app from an AI prompt
- Host: GitHub
- URL: https://github.com/alephmatic/full-stack-ai
- Owner: alephmatic
- Created: 2023-12-03T20:49:29.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2024-01-26T18:19:20.000Z (10 months ago)
- Last Synced: 2024-04-14T15:25:17.457Z (7 months ago)
- Topics: ai, copilot, full-stack, generator, kirimase, nextjs, openai
- Language: TypeScript
- Homepage: https://fsai.elie.tech
- Size: 657 KB
- Stars: 198
- Watchers: 4
- Forks: 24
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- jimsghstars - alephmatic/full-stack-ai - Generate a full-stack Next.js app from an AI prompt (TypeScript)
README
# Full stack AI
Build a full stack Next.js app from an AI prompt.
Built by [Elie](https://twitter.com/elie2222). Also check out [Inbox Zero](https://getinboxzero.com), an open source email app to automate your emails and reach inbox zero fast.
## Demo Video
[![Full Stack AI demo](/assets/video-thumbnail.png)](https://youtu.be/DptvWuRfF2M)
## What It Does
Full Stack AI, `fsai`, is a CLI that uses AI to build a full-stack app for you.
The AI will:
* Generate a Next.js app with TypeScript and Tailwind
* Add shadcn/ui for frontend components
* Generate pages to create/update/delete data
* Generate a Prisma/Drizzle schema
* Uses Postgres/MySQL/SQLite for the database
* Add auth via NextAuth.js with GitHub/Discord/Google/Apple log in supported
* Or add auth with Clerk/Lucia/Kinde
* Add account screen to change settings
* Add Stripe for payments
* Add Resend to send transactional emails
* Generate CRUD APIs
* Add light/dark modeIt can use the package manager of your choice. It defaults to `pnpm` unless you prompt the AI otherwise.
### Experimentation
We've been experimenting with a more general AI coder called [Aleph0](https://github.com/alephmatic/aleph0) which is in beta.
## Getting Started
```bash
export OPENAI_API_KEY=...
npx fsai gen "Build a clone of Twitter called StackPrompt where people prompt instead of tweet. Allow users to follow one another and to like prompts. Use GitHub for log in. Charge users a monthly fee for premium functionality."
```Then `cd` into the newly created app folder, set the environment variables and in the `.env` file and run `npm run dev` to see your app live in the browser at [http://localhost:3000](http://localhost:3000).
You can install the package globally and run as follows:
```bash
pnpm i -g fsai
export OPENAI_API_KEY=...
fsai gen "Build a clone of Twitter called StackPrompt where people prompt instead of tweet. Allow users to follow one another and to like prompts. Use GitHub for log in. Charge users a monthly fee for premium functionality."
```Under the hood this project uses [Kirimase](https://github.com/nicoalbanese/kirimase).
## Run locally
If you want to clone the repo and run it locally:
```bash
pnpm i
export OPENAI_API_KEY=...
npx tsx src/index.ts gen "Build a clone of Twitter called StackPrompt where people prompt instead of tweet. Allow users to follow one another and to like prompts. Use GitHub for log in. Charge users a monthly fee for premium functionality."
```