Skip to content

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
KishinZW committed Nov 14, 2024
1 parent 95c864b commit f8cdc82
Show file tree
Hide file tree
Showing 131 changed files with 17,361 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
DATABASE_URL=""
DATABASE_CONNECTION_TYPE=""
DATABASE_AUTH_TOKEN=""
NODE_ENV=""
PORT=""
SIGN_PUBLIC_KEY=""
SIGN_PRIVATE_KEY=""
ENC_PUBLIC_KEY=""
ENC_PRIVATE_KEY=""
ENC_KID=""
SIGN_KID=""
SERVER_URL=""
TOKEN_EXPIRATION_TIME=""
20 changes: 20 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: ESLint Check

on: [workflow_dispatch, push]

jobs:
lint:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4

- uses: oven-sh/setup-bun@v1

- name: Install dependencies
working-directory: .
run: bun i install

- name: Run Lint
run: bun lint --no-fix
46 changes: 46 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: Run Tests

on: [workflow_dispatch]

jobs:
test-pnpm:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4

- uses: pnpm/action-setup@v2
name: Install pnpm
with:
version: 9
run_install: false

- name: Install dependencies
working-directory: .
run: pnpm i

- name: Use env secrets
run: echo "${{ secrets.TEST_NODE_ENV }}" | base64 -d > .env.local

- name: Run Tests
run: pnpm test

test-bun:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4

- uses: oven-sh/setup-bun@v1

- name: Install dependencies
working-directory: .
run: bun i install

- name: Use env secrets
run: echo "${{ secrets.TEST_NODE_ENV }}" | base64 -d > .env.local

- name: Run Tests
run: bun run test
25 changes: 25 additions & 0 deletions .github/workflows/typecheck.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Type Check

on: [workflow_dispatch, push]

jobs:
typecheck:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4

- uses: pnpm/action-setup@v2
name: Install pnpm
with:
version: 9
run_install: false

- name: Install dependencies
working-directory: .
run: pnpm i

- name: Run typecheck
working-directory: .
run: pnpm typecheck
34 changes: 34 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# Nuxt dev/build outputs
.output
.data
.nuxt
.nitro
.cache
dist

# Node dependencies
node_modules

# Logs
logs
*.log

# Misc
.DS_Store
.fleet
.idea

# Local env files
.env
.env.*
!.env.example

# drizzle migration folder
drizzle/

# local sqlite file
*.sqlite
!test.sqlite

# Editor
.vscode/
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
shamefully-hoist=false
Loading

0 comments on commit f8cdc82

Please sign in to comment.