Setting up locally
This guide will walk you through setting up Nuxtbe in your local development environment.
Project Structure
After cloning and installing, project structure will include:
- app/
- components/
- ui/
- button.vue
- ...
- BrandLogo.vue
- HeroList.vue
- ...
- composables/
- layouts/
- lib/
- pages/
- utils/
- app.config.ts
- app.vue
- error.vue
- public/
- supabase/
- functions/
- ...
- migrations/
- ...
- ...
- types/
- ...
- nuxt.config.ts
- tailwind.config.ts
- eslint.config.ts
- ...
Nuxtbe is built with compatibility mode for Nuxt 4 and follows Nuxt 4 project structure.
Initial Setup
Configure Environment
Copy the example environment file:
Run the Supabase migration
Follow steps from Supabase Database setup
Fill in the environment variables
Start Development Server
Well done! An app should be running at http://localhost:3000.
Never commit your .env
file to version control. Make sure it's listed in your .gitignore
.
Authentication Setup
Supabase Configuration
- Create a Supabase project at supabase.com
- Copy your project URL, anon key, and service key
- Update your
.env
file with these values
Payment Integration
Stripe Setup (Optional)
- Create a Stripe account at stripe.com
- Get your API keys from the Stripe Dashboard
- Update your
.env
file:
More details of api keys can be found in Stripe documentation.
LemonSqueezy Setup (Optional)
- Create a LemonSqueezy account
- Generate API keys from your dashboard
- Add to your
.env
:
More details of api keys can be found in LemonSqueezy documentation.
Email Service
Resend Configuration (Required)
- Sign up for Resend at resend.com
- Create API key and audience ID
- Update environment variables:
Customization
Tailwind Configuration
Customize your theme in tailwind.config.ts
:
App Configuration
Modify app.config.ts
for application-specific settings:
Nuxt Configuration
Customize your Nuxt application settings in nuxt.config.ts
:
Troubleshooting
Common issues and solutions:
- Port already in use: Stop other development servers or change port using
PORT=3001 npm run dev
- Module not found: Try removing
node_modules
and running install again - TypeScript errors: Run
npm run typecheck
to identify issues
For additional help, check our GitHub issues or join our Discord community.