The collection of logos from Schönherz and its related organizations.
Check out live at: logotar.schdesign.hu
- PNPM: https://pnpm.io/
- Vercel CLI: https://vercel.com/docs/cli
- Node Version Manager
Install dependencies:
pnpm i
Link your local repository to the Vercel one,
vercel link
Pull the environment variables from Vercel.
vercel pull
Create a symbolic link to .vercel/.env.development.local
to act as .env
.
# Linux
ln -s .vercel/.env.development.local .env
# Windows PowerShell
New-Item -ItemType SymbolicLink -Value .vercel/.env.development.local -Path .env
pnpm dev
- Frontend: localhost:3000
- Payload: localhost:3000/admin
In order to make life easier working with Payload, there's a wrapper script payload
inside package.json
.
Generate Payload types:
pnpm run payload generate:types
In order to efficiently store and organize the logos, these entities were created:
type Collection = {
name: string
slug: string
children: Array<Collection | Logo>
}
type Logo = {
name: string
slug: string
sourceFile: Media
files: Array<Media>
}