Skip to content

kiwilan/seeds

Repository files navigation

🌱 Seeds

node fastify license

tests pipeline

API to use random pictures with seeders. You could use pictures from this repo.

Setup

pnpm i
cp .env.example .env

You could use pictures from this repo.

git clone https://gitlab.com/kiwilan/seeds-pictures.git ./src/public/seeds-pictures
pnpm dev

Docker

docker-compose up

Pictures

You could use your own pictures. You just need to put them in ./src/public/seeds-pictures and respect the following structure:

src/public/seeds-pictures
├── large
│   ├── category-1
│   │   ├── img-1.jpg
│   │   └── img-2.jpg
│   └── category-2
│       ├── img-1.jpg
│       └── img-2.jpg
├── medium # let empty
├── small # let empty
└── tiny # let empty

All extra sizes (medium, small, tiny) will be generated automatically with sharp.

Build

LOG_LEVEL=error      # debug | error | fatal  | info | trace | warn | silent

PORT=3000 # pm2 port
BASE_URL=domain.com
HTTPS=true
pnpm build

License

MIT