Skip to content

Commit 66af007

Browse files
committed
feat: initial commit
0 parents  commit 66af007

28 files changed

+6811
-0
lines changed

.dockerignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
node_modules

.gitignore

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
*.db
2+
3+
# Nuxt dev/build outputs
4+
.output
5+
.data
6+
.nuxt
7+
.nitro
8+
.cache
9+
dist
10+
11+
# Node dependencies
12+
node_modules
13+
14+
# Logs
15+
logs
16+
*.log
17+
18+
# Misc
19+
.DS_Store
20+
.fleet
21+
.idea
22+
23+
# Local env files
24+
.env
25+
.env.*
26+
!.env.example

README.md

Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
# Nuxt Minimal Starter
2+
3+
Look at the [Nuxt documentation](https://nuxt.com/docs/getting-started/introduction) to learn more.
4+
5+
## Setup
6+
7+
Make sure to install dependencies:
8+
9+
```bash
10+
# npm
11+
npm install
12+
13+
# pnpm
14+
pnpm install
15+
16+
# yarn
17+
yarn install
18+
19+
# bun
20+
bun install
21+
```
22+
23+
## Development Server
24+
25+
Start the development server on `http://localhost:3000`:
26+
27+
```bash
28+
# npm
29+
npm run dev
30+
31+
# pnpm
32+
pnpm dev
33+
34+
# yarn
35+
yarn dev
36+
37+
# bun
38+
bun run dev
39+
```
40+
41+
## Production
42+
43+
Build the application for production:
44+
45+
```bash
46+
# npm
47+
npm run build
48+
49+
# pnpm
50+
pnpm build
51+
52+
# yarn
53+
yarn build
54+
55+
# bun
56+
bun run build
57+
```
58+
59+
Locally preview production build:
60+
61+
```bash
62+
# npm
63+
npm run preview
64+
65+
# pnpm
66+
pnpm preview
67+
68+
# yarn
69+
yarn preview
70+
71+
# bun
72+
bun run preview
73+
```
74+
75+
Check out the [deployment documentation](https://nuxt.com/docs/getting-started/deployment) for more information.

docker/Dockerfile

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
ARG NODE_VERSION=22.12.0
2+
3+
FROM node:${NODE_VERSION}-slim AS build
4+
5+
WORKDIR /usr/app
6+
7+
COPY . ./
8+
9+
RUN yarn install
10+
11+
EXPOSE 3000
12+
ENV HOST=0.0.0.0 NODE_ENV=production
13+
14+
RUN mkdir -p /usr/database/
15+
ENV DB_FILE_PATH=/usr/database/database.db
16+
17+
RUN yarn build
18+
RUN chmod +x /usr/app/entrypoint.sh
19+
20+
CMD [ "/usr/app/entrypoint.sh" ]

drizzle.config.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import "dotenv/config"
2+
import { defineConfig } from "drizzle-kit"
3+
4+
export default defineConfig({
5+
out: "./drizzle",
6+
schema: "./src/server/db/schema.ts",
7+
dialect: "sqlite",
8+
dbCredentials: {
9+
url: process.env.DB_FILE_PATH!,
10+
},
11+
})

entrypoint.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/bin/sh
2+
set -e
3+
4+
npx drizzle-kit push
5+
6+
exec node /usr/app/.output/server/index.mjs

nuxt.config.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
export default defineNuxtConfig({
2+
compatibilityDate: "2024-11-01",
3+
devtools: { enabled: true },
4+
srcDir: "src/",
5+
modules: ["@nuxtjs/tailwindcss"],
6+
})

package.json

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
{
2+
"name": "nuxt-app",
3+
"private": true,
4+
"type": "module",
5+
"scripts": {
6+
"build": "nuxt build",
7+
"dev": "nuxt dev",
8+
"generate": "nuxt generate",
9+
"preview": "nuxt preview",
10+
"postinstall": "nuxt prepare"
11+
},
12+
"dependencies": {
13+
"better-sqlite3": "^11.6.0",
14+
"bootstrap": "^5.3.3",
15+
"dayjs": "^1.11.13",
16+
"drizzle-kit": "^0.29.1",
17+
"drizzle-orm": "^0.37.0",
18+
"nuxt": "^3.14.1592",
19+
"vue": "^3.5.13",
20+
"vue-router": "^4.5.0",
21+
"zod": "^3.23.8"
22+
},
23+
"packageManager": "[email protected]+sha1.4ba7fc5c6e704fce2066ecbfb0b0d8976fe62447",
24+
"devDependencies": {
25+
"@nuxtjs/tailwindcss": "^6.12.2",
26+
"@types/better-sqlite3": "^7.6.12"
27+
}
28+
}

src/app.vue

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<script setup lang="ts">
2+
import "bootstrap/dist/css/bootstrap.min.css"
3+
</script>
4+
5+
<template>
6+
<Header />
7+
<NuxtPage />
8+
</template>

src/components/header.vue

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<script setup lang="ts"></script>
2+
<template>
3+
<header>
4+
<nav class="navbar navbar-expand-lg bg-light">
5+
<div class="container-fluid">
6+
<NuxtLink to="/">Taskiq Admin</NuxtLink>
7+
<div class="collapse navbar-collapse" id="navbarSupportedContent">
8+
<ul class="navbar-nav me-auto mb-2 mb-lg-0">
9+
<li class="nav-item">
10+
<NuxtLink class="nav-link" to="/tasks">Home</NuxtLink>
11+
</li>
12+
<li class="nav-item">
13+
<NuxtLink class="nav-link" to="/tasks">Tasks</NuxtLink>
14+
</li>
15+
</ul>
16+
</div>
17+
</div>
18+
</nav>
19+
</header>
20+
</template>

0 commit comments

Comments
 (0)