Giter Site home page Giter Site logo

princesychar / full-stack-ai Goto Github PK

View Code? Open in Web Editor NEW

This project forked from alephmatic/full-stack-ai

0.0 0.0 0.0 673 KB

Generate a full-stack Next.js app from an AI prompt

Home Page: https://fsai.elie.tech

JavaScript 1.04% TypeScript 96.28% CSS 2.68%

full-stack-ai's Introduction

Full stack AI

Build a full stack Next.js app from an AI prompt.

Built by Elie. Also check out Inbox Zero, an open source email app to automate your emails and reach inbox zero fast.

Demo Video

Full Stack AI demo

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 mode

It 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 which is in beta.

Getting Started

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.

You can install the package globally and run as follows:

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.

Run locally

If you want to clone the repo and run it locally:

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."

full-stack-ai's People

Contributors

elie222 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.