Skip to content
This repository has been archived by the owner on Jan 10, 2024. It is now read-only.

kyong0612/admin-console-template

Repository files navigation

admin-console-template

My boilerplate for admin console

Set up

volta

# if your unix user
curl https://get.volta.sh | bash

pnpm

  • install pnpm
volta install pnpm

direnv

# if you use mac
brew install direnv
  • allow direnv
cp .sample.env .env \
direnv allow .

playwright

npx playwright install

node_modules

pnpm install

optional: install vscode extensions

if you use vscode, you can install extensions below.

Run Server

  • dev server

    • run pnpm dev
      • dev server is running by turbopack
  • docker compose

    • run pnpm run
      • container is build and run by docker compose
        • WARNING: is not run hot reload
          • can check build available

GraphQL

generate by schema

  • graphql-codegen create typescript code by graphql schema.
    • to generate, run pnpm codegen

Test

  • run pnpm test:unit

    • use vitest for unit test
      • vitest read src/*.test.ts, and run unit test.
  • run pnpm test:e2e

    • use playwright for e2e test
      • playwright read e2e/*.spec.ts, and run e2e test.

Styling

About

My boilerplate for admin console

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published