Counter: {{ counter.count }}
diff --git a/app/components/Hero.vue b/app/components/Hero.vue
index 7842710..4da12ef 100644
--- a/app/components/Hero.vue
+++ b/app/components/Hero.vue
@@ -1,49 +1,60 @@
-
-
+
+
-
-
+
+
Nuxt Starter
-
-
+
+
-
{{ icon.label }}
+
{{
+ icon.label
+ }}
-
+
-
\ No newline at end of file
+
diff --git a/app/components/Theme.vue b/app/components/Theme.vue
index 77c5aec..b22f127 100644
--- a/app/components/Theme.vue
+++ b/app/components/Theme.vue
@@ -1,20 +1,20 @@
diff --git a/app/layouts/default.vue b/app/layouts/default.vue
index 2c2b07b..319d974 100644
--- a/app/layouts/default.vue
+++ b/app/layouts/default.vue
@@ -1,3 +1,4 @@
-
-
+
+
+
diff --git a/app/store/count.ts b/app/store/count.ts
index 8efa1c4..921a596 100644
--- a/app/store/count.ts
+++ b/app/store/count.ts
@@ -1,13 +1,13 @@
export const useCount = defineStore({
- id: "count",
- state: () => ({ count: 0 }),
- actions: {
- increment() {
- this.count++;
- },
- decrement() {
- this.count--;
- },
- },
- persist: true,
+ id: "count",
+ state: () => ({ count: 0 }),
+ actions: {
+ increment() {
+ this.count++;
+ },
+ decrement() {
+ this.count--;
+ },
+ },
+ persist: true,
});
diff --git a/docker-compose.yml b/docker-compose.yml
index 1951a6d..cd6dc34 100644
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -1,21 +1,20 @@
-services:
-
- nuxt-app:
- container_name: nuxt_app
- build:
- context: .
- dockerfile: Dockerfile
- ports:
- - '3000:3000'
-
- postgres:
- container_name: postgres_nuxt
- image: postgres
- environment:
- POSTGRES_DB: postgres
- POSTGRES_USER: root
- POSTGRES_PASSWORD: password
- PGDATA: /data/postgres
- ports:
- - '5432:5432'
+services:
+ nuxt-app:
+ container_name: nuxt_app
+ build:
+ context: .
+ dockerfile: Dockerfile
+ ports:
+ - "3000:3000"
+
+ postgres:
+ container_name: postgres_nuxt
+ image: postgres
+ environment:
+ POSTGRES_DB: postgres
+ POSTGRES_USER: root
+ POSTGRES_PASSWORD: password
+ PGDATA: /data/postgres
+ ports:
+ - "5432:5432"
restart: unless-stopped
diff --git a/drizzle.config.ts b/drizzle.config.ts
index 5a76649..44b8ff2 100644
--- a/drizzle.config.ts
+++ b/drizzle.config.ts
@@ -1,13 +1,13 @@
-import { defineConfig } from 'drizzle-kit'
-import { dbUrl } from './env'
+import { defineConfig } from "drizzle-kit";
+import { dbUrl } from "./env";
export default defineConfig({
- schema: 'server/database/schema.ts',
- out: '.drizzle',
- dialect: 'sqlite',
+ schema: "server/database/schema.ts",
+ out: ".drizzle",
+ dialect: "sqlite",
dbCredentials: {
url: dbUrl,
},
strict: true,
verbose: true,
-})
+});
diff --git a/env.ts b/env.ts
index 8e87c74..145d598 100644
--- a/env.ts
+++ b/env.ts
@@ -1,5 +1,5 @@
if (!process.env.DB_URL) {
- throw new Error('DB_URL is not set in .env file');
+ throw new Error("DB_URL is not set in .env file");
}
-export const dbUrl = process.env.DB_URL
\ No newline at end of file
+export const dbUrl = process.env.DB_URL;
diff --git a/eslint.config.js b/eslint.config.js
index bf8fa9f..d10e181 100644
--- a/eslint.config.js
+++ b/eslint.config.js
@@ -1,5 +1,7 @@
-import withNuxt from './.nuxt/eslint.config.mjs'
+import withNuxt from "./.nuxt/eslint.config.mjs";
export default withNuxt({
- 'vue/multi-word-component-names': 'off',
-})
\ No newline at end of file
+ rules: {
+ "vue/multi-word-component-names": "off",
+ },
+});
diff --git a/nuxt.config.ts b/nuxt.config.ts
index f926879..2faa406 100644
--- a/nuxt.config.ts
+++ b/nuxt.config.ts
@@ -1,23 +1,23 @@
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
- compatibilityDate: '2024-10-24',
+ compatibilityDate: "2024-10-24",
modules: [
- '@vueuse/nuxt',
- '@nuxt/icon',
- '@unocss/nuxt',
- '@nuxt/eslint',
- '@pinia/nuxt',
- '@pinia-plugin-persistedstate/nuxt',
+ "@vueuse/nuxt",
+ "@nuxt/icon",
+ "@unocss/nuxt",
+ "@nuxt/eslint",
+ "@pinia/nuxt",
+ "@pinia-plugin-persistedstate/nuxt",
],
ssr: false,
devtools: { enabled: true },
- css: ['./app/app.css'],
- srcDir: 'app',
- serverDir: 'server',
+ css: ["./app/app.css"],
+ srcDir: "app",
+ serverDir: "server",
unocss: {
nuxtLayers: true,
},
imports: {
dirs: ["./store"],
- },
-})
+ }
+});
diff --git a/package.json b/package.json
index 81d1a07..0931c41 100644
--- a/package.json
+++ b/package.json
@@ -13,8 +13,7 @@
"start": "node .output/server/index.mjs",
"lint": "pnpm lint:eslint && pnpm lint:prettier",
"lint:eslint": "eslint .",
- "lint:prettier": "prettier . --check",
- "lintfix": "eslint . --fix && prettier --write --list-different ."
+ "lint:prettier": "prettier . --write"
},
"dependencies": {
"@nuxt/eslint": "^0.6.0",
@@ -24,7 +23,6 @@
"@types/better-sqlite3": "^7.6.11",
"@types/uuid": "^10.0.0",
"@unocss/core": "^0.63.6",
- "@unocss/core": "^0.63.6",
"@unocss/nuxt": "^0.63.6",
"@vueuse/core": "^11.1.0",
"@vueuse/nuxt": "^11.1.0",
diff --git a/server/api/health.ts b/server/api/health.ts
index d589df5..9e08ede 100644
--- a/server/api/health.ts
+++ b/server/api/health.ts
@@ -1,3 +1,3 @@
export default defineEventHandler((event) => {
- return { status: "ok" };
+ return { status: "ok" };
});
diff --git a/server/database/schema.ts b/server/database/schema.ts
index 3d2779b..c15520a 100644
--- a/server/database/schema.ts
+++ b/server/database/schema.ts
@@ -2,12 +2,16 @@ import { sql } from "drizzle-orm";
import { integer, sqliteTable, text } from "drizzle-orm/sqlite-core";
export const users = sqliteTable("users", {
- id: integer("id").primaryKey({ autoIncrement: true }),
- name: text("name").notNull(),
- email: text("email").notNull().unique(),
- password: text("password").notNull(),
- created_at: text("timestamp").notNull().default(sql`(current_timestamp)`),
- updated_at: text("timestamp").notNull().default(sql`(current_timestamp)`),
- deleted_at: text("timestamp"),
- is_deleted: integer("is_deleted").notNull().default(0),
+ id: integer("id").primaryKey({ autoIncrement: true }),
+ name: text("name").notNull(),
+ email: text("email").notNull().unique(),
+ password: text("password").notNull(),
+ created_at: text("timestamp")
+ .notNull()
+ .default(sql`(current_timestamp)`),
+ updated_at: text("timestamp")
+ .notNull()
+ .default(sql`(current_timestamp)`),
+ deleted_at: text("timestamp"),
+ is_deleted: integer("is_deleted").notNull().default(0),
});
diff --git a/uno.config.ts b/uno.config.ts
index 7ffdc69..3ba146c 100644
--- a/uno.config.ts
+++ b/uno.config.ts
@@ -1,13 +1,10 @@
-import { defineConfig, presetAttributify, presetUno } from 'unocss'
+import { defineConfig, presetAttributify, presetUno } from "unocss";
export default defineConfig({
theme: {
fontFamily: {
- satoshi: 'Satoshi-Variable',
+ satoshi: "Satoshi-Variable",
},
},
- presets: [
- presetUno(),
- presetAttributify(),
- ],
-})
+ presets: [presetUno(), presetAttributify()],
+});