Installation¶
This guide will help you set up the project locally for development.
Prerequisites¶
Before you begin, ensure you have the following installed:
- Node.js >= 18.0.0
- pnpm >= 8.0.0
- Git
Clone the Repository¶
Install Dependencies¶
Environment Setup¶
Create a .env.local file in the root directory:
Add your environment variables:
# Unsplash (optional)
UNSPLASH_ACCESS_KEY=your_access_key
# Database (optional)
POSTGRES_URL=your_postgres_url
Start Development Server¶
The site will be available at http://localhost:3000
Verification¶
To verify your installation:
- Open http://localhost:3000
- Check that the page loads without errors
- Navigate through different sections
- Test the theme system (light/dark)
Troubleshooting¶
Port Already in Use¶
If port 3000 is already in use, Next.js will automatically use the next available port.
Build Errors¶
Clear the build cache: