- Copy
.env.local.example to .env.local and alter the following variables:
NEXT_PUBLIC_TITLE: site title
NEXT_PUBLIC_EASYMODE: set to true to pre-solve all puzzles
GIFT_PATH: path to a gift file
GIFT_FILENAME: file name when downloaded
GIFT_CONTENT_TYPE: file mime type
- Upload your photos to
public/photos/. E.g. photos of your couple of important moments.
- Go to
app/puzzles/puzzles.ts and add puzzles for these photos. Set piecesCount to manage difficulty. This is the count per one side, so the total count is piecesCount^2
- Inspect the files listed below. Feel free to alter text and resources
app/congratulations/page.tsx
app/page.tsx
app/puzzles/[puzzle]/page.tsx
app/globals.css
public/*
# Activate node 18
# Skip this step if you use node without the nvm version manager
nvm use
# Start the server
npm run dev