Skip to content

k35o/k8o

Repository files navigation

k8o

This is a website for everything created by k8o!

setup

Install the package after preparing Node.js and pnpm with reference to the version described in package.json.

pnpm i --frozen-lockfile

Copy environment variables and launch docker to use SQL and KV.

cp .env.example .env.local
docker compose up -d
pnpm run migration

If you want to use the MicroCMS locally, ask k8o for the MICROCMS_API_KEY.

development

dev server

Starts the application in development mode with hot-code reloading, error reporting, and more.

pnpm run dev

storybook

There is a collection of components and a design system.

pnpm run storybook

tests

One side is tested by VITEST. It will run in browser mode except for the utils test.

pnpm run test

# using Vitest UI
pnpm run test:ui

# If you want to get covarage result ...
pnpm run coverage

lint

Using elsint affected by next.js.

pnpm run lint

format

By prettier.

pnpm run format

type-check

It work in typescript(tsc --noEmit).

pnpm run type-check

database

Generate migration file by schema file(src/drizzle/schema.ts).

pnpm run generate

Generate custom migration file, such as seeding data.

pnpm run generage:custom

Execute database migration in migrations/*.sql.

pnpm run migrate

Connect local postgres database.

docker compose exec postgres psql -U postgres -d main

composition

platform

Application

Vercel

Database

Neon

KV

Upstash

CMS

MicroCMS

framework

next.js

styling

tailwdindcss

icon

heroicons

animation

motion