https://github.com/CyberCowboy404/nuxtgain
Nuxt3 + Supabase; Production ready SaaS boilerplate
https://github.com/CyberCowboy404/nuxtgain
Last synced: 11 months ago
JSON representation
Nuxt3 + Supabase; Production ready SaaS boilerplate
- Host: GitHub
- URL: https://github.com/CyberCowboy404/nuxtgain
- Owner: CyberCowboy404
- License: mit
- Created: 2024-09-12T13:07:19.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2025-06-20T07:45:48.000Z (about 1 year ago)
- Last Synced: 2025-06-20T08:38:40.292Z (about 1 year ago)
- Language: Vue
- Size: 1.81 MB
- Stars: 91
- Watchers: 2
- Forks: 12
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: docs/CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
- awesome-nuxt - NuxtGain
README
[](https://opensource.org/licenses/MIT)
[](https://github.com/CyberCowboy404/nuxtgain/stargazers)
[](https://github.com/CyberCowboy404/nuxtgain/network)
[](https://github.com/CyberCowboy404/nuxtgain/issues)
# NuxtGain: Production-Ready SaaS Boilerplate for Nuxt + Supabase
## A Developer's Solution to Common Nuxt Challenges
Building complex applications with Nuxt can be challenging, especially when it comes to SaaS projects. How do you handle state management, organize business logic, deal with environment variables, navigate Nuxt context in composables, and follow best practices? NuxtGain aims to simplify this process, offering a solid foundation based on real-world experience.
NuxtGain isn't just a concept. It's the core of [magic-resume.ai](https://magic-resume.ai), an AI-powered resume builder for developers that's currently generating revenue in production. I'm now opening up this tried and tested setup to the community.
### Why Choose NuxtGain?
- **Production-Tested**: Actively powers a profitable SaaS application.
- **Comprehensive SaaS Setup**: Includes common SaaS features and integrations.
- **Accelerate Development**: Reduces setup time for new Nuxt projects.
- **Supabase Integration**: Built with Supabase as the primary database solution.
- **Open Source**: Free for the community to use and improve.
Nuxt may have a smaller ecosystem, compared to the NextJS, but it's powerful. NuxtGain is here to streamline your development process and prove that we can build robust applications. Got ideas to make it better? Jump in and contribute.
Let's make Nuxt gain again!
Ready to start building? Dive into the details below and [join our discord](https://discord.gg/EyRuX26ahN)
## Key Features
### Core Technologies ๐
- ๐ง Nuxt3 + Supabase integration
- ๐ Fully TypeScript-based
- ๐จ Tailwind CSS + Nuxt UI for styling
- ๐ Nuxt4 compatible
### Development and Configuration โ๏ธ
- ๐ญ Production-ready Nuxt configurations
- ๐งน ESLint configuration with Vue and Nuxt best practices
- ๐ง Business logic and state management setup
- ๐งฉ Configured and installed essential popular Nuxt modules
### Authentication and User Management ๐
- ๐ Supabase authentication integration
- ๐ช Easy-to-use authentication component
- ๐ Basic database tables for user handling
### Internationalization and SEO ๐
- ๐ฃ๏ธ i18n configuration for translations
- ๐ SEO-ready setup
### Payment and Transactions ๐ณ
- ๐ฐ Stripe payment integration
- ๐ Basic payment tables (one-time payments, subscriptions in progress)
- ๐ง Transactional emails with Brevo (free up to 300 emails per day)
### Content Management ๐
- ๐ Ready-to-use blog functionality
### UI Components ๐๏ธ
- ๐งฑ Numerous components for landing pages, payment forms, and modals
- ๐ฎ Feedback forms
### File Handling ๐
- ๐ผ๏ธ Image upload functionality
### Deployment and DevOps ๐
- โธ๏ธ Kubernetes deployment configurations
- ๐ GitHub Actions for container deployment to Kubernetes cluster
- โฒ Vercel deployment configurations
- โก Vercel Edge deployment configurations
### Analytics and Monitoring ๐
- ๐ Analytics-ready setup (PostHog, GA4)
### API and Server-side Features ๐ฅ๏ธ
- ๐ Server endpoints for data handling and application logic
- โฐ Cron job routes for scheduled tasks (e.g., discount emails, transactional emails)
### Additional SaaS Features ๐ ๏ธ
- ๐ Basic SaaS page templates
## NuxtGain Quick Start Guide
## 1. Set Up Supabase
1. Initialize Supabase locally:
```
npm run supabase:start
```
This command runs migrations, setting up basic tables, Row Level Security (RLS), indexes, triggers, and functions.
2. Copy the environment variables:
```
cp .env.example .env
```
3. Update the `.env` file with your Supabase keys:
- `NUXT_PUBLIC_SUPABASE_KEY`
- `NUXT_SUPABASE_SERVICE_KEY`
These keys are essential for core SaaS functionalities.
## 2. Configure Authentication
1. Edit `./supabase/config.toml` to set up authentication providers.
Example configuration for Google OAuth:
```toml
[auth.external.google]
enabled = true
client_id = "your_client_id"
secret = "your_secret"
redirect_uri = "http://localhost:54321/auth/v1/callback"
```
**Note:** Never commit OAuth provider secrets to git. Use environment variables for sensitive information.
1. For more details on configuring auth providers, refer to the [Supabase Local Development Guide](https://supabase.com/docs/guides/cli/local-development?queryGroups=access-method&access-method=postgres#use-auth-locally).
## 3. Final Configuration
1. Review and update all other environment variables in the `.env` file to enable full functionality of your app.
## 4. Launch Your App
Run the development server:
```
npm run dev
```
Your NuxtGain app should now be up and running with authentication and user management enabled.
For additional configuration options and advanced features, please refer to our detailed documentation.
# NuxtGain Documentation
## Table of Contents
- [Business Logic Organization](docs/business-logic-organization.md)
- [Contributing](docs/CONTRIBUTING.md)
We're continuously improving our documentation. If you have any questions or suggestions, please [open an issue](https://github.com/https://github.com/CyberCowboy404/nuxtgain/issues) on GitHub repository, or write it in [discord](https://discord.gg/EyRuX26ahN)
# Community and Support
As the creator of NuxtGain, I'm here to help and discuss ideas. Reach out to me through:
- [Discord](https://discord.gg/EyRuX26ahN)
- [X (Twitter)](https://x.com/CyberCowboy404)
- [LinkedIn](https://www.linkedin.com/in/nick-b-92589418b/)
For issues or feature requests, please use [GitHub Issues](https://github.com/your-repo/issues).
Let's build something great together!
## License
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
NuxtGain is a battle-tested SaaS boilerplate for Nuxt3...
## Get Involved
Ready to supercharge your Nuxt3 development? Here's how you can get started with NuxtGain:
1. ๐ **Try It Out**: Clone the repo and start building your next SaaS project.
```
git clone https://github.com/CyberCowboy404/nuxtgain.git
```
2. โญ **Show Your Support**: If NuxtGain helps you, consider giving it a star on GitHub.
3. ๐ **Report Issues**: Encountered a bug? [Open an issue](https://github.com/CyberCowboy404/nuxtgain/issues) and help improve NuxtGain.
4. ๐ค **Contribute**: Got ideas or fixes? [Submit a pull request](https://github.com/CyberCowboy404/nuxtgain/pulls) and be part of NuxtGain's growth.
5. ๐ฌ **Spread the Word**: Share NuxtGain with your network and help the community grow.
6. โ **Buy Me a Coffee**: If you find NuxtGain valuable, consider [buying me a coffee](https://buymeacoffee.com/cybercowboy404) to support ongoing development.
7. ๐ **Use Magic Resume**: Need a stellar developer resume? Check out [Magic Resume](https://magic-resume.ai), the AI-powered resume builder that NuxtGain powers!
Join us in making Nuxt3 development faster, easier, and more enjoyable!