System Requirements
Before installing Pengrafic, ensure your system meets these requirements:- Node.js: 18.x or higher
- Package Manager: npm, yarn, or pnpm
- Operating System: macOS, Windows, or Linux
This template is built with Next.js 14.1.0 and React 18.2.0, ensuring you have access to the latest features including the App Router and Server Components.
Installation Methods
Install Dependencies
Install all required packages using your preferred package manager:The template includes these key dependencies:
- Next.js (^14.1.0) - React framework
- React (^18.2.0) - UI library
- Tailwind CSS (^3.4.1) - Utility-first CSS
- TypeScript (^5.3.3) - Type safety
- Framer Motion (^12.7.4) - Animations
- Supabase (^2.81.1) - Backend services
- next-themes (^0.2.1) - Dark mode support
Environment Configuration
If you plan to use Supabase for authentication or database features, create a To get your Supabase credentials:
.env.local file in the root directory:.env.local
- Create a project at supabase.com
- Go to Project Settings → API
- Copy your project URL and anon/public key
Start Development Server
Project Structure
After installation, you’ll see this structure:Build for Production
When you’re ready to deploy:- Optimizes your application for production
- Generates static pages where possible
- Minifies JavaScript and CSS
- Optimizes images
Verification
To verify your installation is successful:- ✅ Development server starts without errors
- ✅ Home page loads at
localhost:3000 - ✅ Dark mode toggle works
- ✅ Navigation between pages works smoothly
- ✅ No console errors in browser DevTools
Troubleshooting
Port 3000 already in use
Port 3000 already in use
If port 3000 is occupied, Next.js will automatically try port 3001. Or specify a different port:
Module not found errors
Module not found errors
Delete
node_modules and reinstall:TypeScript errors
TypeScript errors
Ensure you’re using Node.js 18.x or higher:Then rebuild:
Supabase connection issues
Supabase connection issues
Verify your environment variables:
- Check
.env.localexists in root directory - Verify credentials are correct
- Ensure no extra spaces in variable values
- Restart the dev server after changing env variables
Next Steps
Now that you have Pengrafic installed:Quickstart Guide
Learn how to customize your first page and add components
Configuration
Configure theme colors, fonts, and site metadata
Components
Explore available components and how to use them
Deployment
Deploy your site to Vercel, Netlify, or other platforms