Skip to content

kyrregjerstad/holidaze

Repository files navigation

Holidaze

Live Deployment

Overview

This is my final university exam project from Noroff. It's a NextJS application built with TypeScript, Tailwind CSS, and Shadcn. The project is a frontend for a fictional holiday booking website called Holidaze and includes OpenAI chat integration.

Stack

Next JS TypeScript Zod Tailwind CSS PNPM Vercel OpenAI

Features

  • Partial Pre-rendering (PPR) with NextJS 14 (experimental)
  • OpenAi chat integration
  • Server actions
  • User authentication and registration
  • Admin dashboard for managing bookings and venues

Getting Started

Prerequisites

Installation

To get started, clone the repository and install the dependencies:

gh repo clone kyrregjerstad/holidaze
cd holidaze
pnpm install

Copy over the .env.example file to a new file called .env and fill in the necessary environment variables.

cp .env.example .env

To start the development server, run the following command:

pnpm dev

That's it! The full project is now running on http://localhost:3000/.

To build the project, run:

pnpm build

To start the production server, run:

pnpm start

Testing

To run unit tests, use the following command:

pnpm test:unit

To run end-to-end tests, you first need to build the project and run the preview server, then use the following command:

pnpm test:e2e

To log into the page, you need to register with a @stud.noroff.no email address. This email is not verified, and you can use any email address with this domain as long as it's available.

Releases

No releases published

Packages

No packages published

Languages