Skip to content

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

git clone https://github.com/nicholasadamou/nicholasadamou.com.git
cd nicholasadamou.com

Install Dependencies

pnpm install

Environment Setup

Create a .env.local file in the root directory:

cp .env.example .env.local

Add your environment variables:

# Unsplash (optional)
UNSPLASH_ACCESS_KEY=your_access_key

# Database (optional)
POSTGRES_URL=your_postgres_url

Start Development Server

pnpm dev

The site will be available at http://localhost:3000

Verification

To verify your installation:

  1. Open http://localhost:3000
  2. Check that the page loads without errors
  3. Navigate through different sections
  4. 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:

rm -rf .next
pnpm install
pnpm dev

Next Steps