MicroSaaSFast is a complete SaaS boilerplate designed specifically for Indian developers to launch their MVPs quickly. Built with modern technologies and integrated with Indian payment solutions.
- Multiple auth methods (Google OAuth, Magic Links, Email)
- NextAuth.js integration
- Role-based access control
- Secure session management
- RazorPay integration for Indian payments
- Subscription management
- Payment webhooks
- Invoice generation
- Multiple pricing tiers
- Rich text editor
- SEO optimization
- Draft/Publish workflow
- Author management
- Categories and tags
- Transactional emails with Resend
- Email templates
- Welcome emails
- Payment confirmations
- Custom notifications
- Secure webhook endpoints
- Event handling
- Signature verification
- Webhook logs
- Test endpoints
- Beautiful, responsive design
- Dark/Light mode
- Tailwind CSS
- shadcn/ui components
- Customizable themes
- Framework: Next.js 13+ with App Router
- Language: TypeScript
- Database: PostgreSQL with Prisma ORM
- Authentication: NextAuth.js
- Payments: RazorPay
- Email: Resend
- UI: Tailwind CSS + shadcn/ui
- Hosting: Vercel/AWS Amplify ready
- Node.js 18+
- PostgreSQL database
- RazorPay account
- Resend account
- Google OAuth credentials (optional)
- Clone the repository:
git clone https://github.com/yourusername/microsaasfast.git
cd microsaasfast
- Install dependencies:
npm install
- Set up environment variables:
cp .env.example .env
Fill in your environment variables:
DATABASE_URL=your_postgresql_url
NEXTAUTH_SECRET=your_nextauth_secret
NEXTAUTH_URL=http://localhost:3000
# OAuth
GOOGLE_CLIENT_ID=your_google_client_id
GOOGLE_CLIENT_SECRET=your_google_client_secret
# Email
RESEND_API_KEY=your_resend_api_key
# Payments
RAZORPAY_KEY_ID=your_razorpay_key_id
RAZORPAY_KEY_SECRET=your_razorpay_key_secret
# Webhooks
WEBHOOK_SECRET=your_webhook_secret
- Initialize the database:
npx prisma generate
npx prisma db push
- Start the development server:
npm run dev
Visit http://localhost:3000
to see your application.
├── app/ # Next.js 13 app directory
│ ├── api/ # API routes
│ ├── auth/ # Authentication pages
│ ├── blog/ # Blog pages
│ ├── dashboard/ # Dashboard pages
│ └── ...
├── components/ # React components
│ ├── ui/ # UI components
│ ├── blog/ # Blog components
│ └── ...
├── lib/ # Utility functions
├── prisma/ # Database schema
└── public/ # Static files
The project uses Prisma as the ORM. The schema is defined in prisma/schema.prisma
. To modify the database schema:
- Edit
prisma/schema.prisma
- Run migrations:
npx prisma migrate dev
Configure authentication providers in app/api/auth/[...nextauth]/route.ts
. The project supports:
- Google OAuth
- Magic Links
- Email/Password
RazorPay integration is configured in lib/razorpay.ts
. Update your RazorPay credentials in the .env
file.
Email templates are located in components/emails/
. Configure Resend in lib/resend.ts
.
- Push your code to GitHub
- Import your repository to Vercel
- Configure environment variables
- Deploy
A Dockerfile is included for containerized deployment:
docker build -t microsaasfast .
docker run -p 3000:3000 microsaasfast
Contributions are welcome! Please read our Contributing Guide for details.
This project is licensed under the MIT License - see the LICENSE file for details.
- Documentation: /docs
- Issues: GitHub Issues
- Email: support@microsaasfast.com