/dandi

Primary LanguageJavaScriptApache License 2.0Apache-2.0

Dandi API - Boilerplate for AI Micro SaaS Applications

🤯 🤯 This repo was buikt with ENGLISH as the programming language with Cursor IDE and v0.🤯

Logo

Dandi API is a comprehensive boilerplate repository for building AI-powered micro SaaS applications. It provides a solid foundation with essential components and functionalities needed to run an end-to-end micro SaaS application.

The service itself offers powerful insights, summaries, and analytics for open source GitHub repositories.

🌐 Live Application: https://www.dandi.cloud/

🚀 Key Features

  • Complete Micro SaaS Structure: Implements all necessary components for a fully functional AI micro SaaS application.
  • API Key Management: Built-in system for handling API keys, UI heavily inspired by Tavily.
  • Rate Limiting: Integrated rate limiting for API protection.
  • SSO Login: Implemented Single Sign-On functionality.
  • AI Integration: Leverages LangChain JS for AI capabilities.

🛠️ Built with Cursor IDE and v0

This entire project was developed using Cursor IDE, primarily through prompting with Cursor Composer and v0 . As a developer without frontend or full-stack experience, this project demonstrates the power of AI-assisted development.

ENGLISH IS THE NEW PROGRAMMING LANGUAGE. udemy

🧰 Tech Stack (TBH, Cursor did it all for me)

  • Frontend: React, Next.js 13 (App Router), Tailwind CSS
  • Backend: Node.js, Next.js API Routes
  • Database: Supabase (PostgreSQL)
  • Authentication: NextAuth.js
  • UI Components: Shadcn UI, Radix UI
  • API: RESTful API with rate limiting and API key authentication
  • AI: LangChain JS 🦜🔗
  • Deployment: Vercel

🚀 Getting Started

To run this project locally, follow these steps:

  1. Clone the repository:

    git clone https://github.com/yourusername/dandi-api.git
    cd dandi-api
    
  2. Install dependencies:

    yarn install
    
  3. Set up environment variables: Create a .env.local file in the root directory and add the necessary environment variables (refer to the Environment Variables section below).

  4. Run the development server:

    yarn dev
    
  5. Open http://localhost:3000 in your browser to see the application.

🔐 Environment Variables

Create a .env.local file in the root directory with the following variables:

DB_URL=
DB_NAME=
DB_USER=
DB_PASSWORD=
GOOGLE_CLIENT_ID=
GOOGLE_CLIENT_SECRET=
NEXTAUTH_SECRET=
NEXTAUTH_URL=
NEXT_PUBLIC_SUPABASE_URL=
NEXT_PUBLIC_SUPABASE_ANON_KEY=

Note: Keep your .env.local file secure and never commit it to version control.

🏗️ Build and Production

To build the project for production:

yarn build

To run the production build locally:

yarn start

📚 See How to Build This Project with Cursor and v0

For a detailed video tutorial on how to build this micro SaaS application from scratch with cursor and v0, check out my Udemy course:

Cursor AI: Full Stack development with AI powered CoPilot

🚀 From Backend to Full-Stack with Cursor IDE and v0 Magic!

In this course, I will show you how to build this entire app rapidly using AI:

  • 🖥️ Most of Cursor IDE & v0 by Vercel
  • 🧠 AI-Driven Development Workflows
  • 🛠️ Building a Complete AI Micro SaaS (LangChain JS)
  • 💡 Prompting Techniques for Coding and working with AI
  • 💡 Cursor Copilot best practices (at least for me)

🤝 Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

📄 License

This project is licensed under the Apache-2.0 license.

🔗 Links

portfolio linkedin twitter