Installation
Get started with the boilerplate in just a few minutes.
System Requirements
- Node.js 18+ (LTS recommended)
- npm 9+ or yarn 3+
- Git for version control
Quick Installation
1. Clone the Repository
bash
git clone https://github.com/mhdevfr/clawplate.git my-boilerplate
cd my-boilerplate2. Install Dependencies
bash
npm installbash
yarn installbash
pnpm install3. Environment Setup
bash
# Copy environment template
cp .env.example .env.localEdit .env.local with your configuration:
bash
# Database
DATABASE_URL="your_database_url"
# Authentication
NEXTAUTH_SECRET="your-secret-key"
NEXTAUTH_URL="http://localhost:3000"
# Supabase
NEXT_PUBLIC_SUPABASE_URL="your_supabase_url"
NEXT_PUBLIC_SUPABASE_ANON_KEY="your_supabase_anon_key"
# Stripe (optional)
STRIPE_SECRET_KEY="sk_test_..."
NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY="pk_test_..."4. Database Setup
bash
# Initialize database
npm run db:push
# Seed with sample data (optional)
npm run db:seed5. Start Development
bash
npm run devYour app will be available at localhost:3000 ✨
Verification
Check if everything is working:
- Homepage loads - Visit http 😕/localhost:3000
- Database connected - Check the logs for connection success
- Authentication works - Try signing up/in
- Styles loaded - Tailwind CSS should be active
Troubleshooting
Common Issues
Port 3000 already in use
bash
# Use a different port
npm run dev -- --port 3001Database connection failed
- Verify your
DATABASE_URLin.env.local - Check if your database service is running
Module not found errors
bash
# Clear node modules and reinstall
rm -rf node_modules package-lock.json
npm installBuild errors
bash
# Clear Next.js cache
rm -rf .next
npm run devGetting Help
Next Steps
Now that you have the boilerplate installed:
- 🚀 Complete the 5-minute setup
- 🔐 Configure authentication in the Features section
- 🎨 Explore the components
- 📧 Setup email delivery