Skip to content

Heath-Lester/photo-gallery

Repository files navigation

Photo Gallery with Unsplash

This is a Next.js project bootstrapped with create-next-app.

Required Dependencies:

  • Node v18.17.0
  • NPM 10.4.0

How to run locally

Register with Unsplash to get API credentials

  1. Go to Unsplash

  2. Register as a developer and create a new project with Unsplash

  3. You should be provided with API credentials or go to your Unsplash projects and locate your new credentials

  4. Create a new file called .env.local at project directory level:

    .env.local

  5. Create variable called UNSPLASH_ACCESS_KEY

  6. Add your access key from Unsplash as the value

Install dependencies

npm i

Run the Development Server

npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun dev

Open the application in your browser

Got to http://localhost:3000/