Skip to content

Commit d2bc14d

Browse files
committed
feat: initial commit
0 parents  commit d2bc14d

File tree

94 files changed

+18684
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

94 files changed

+18684
-0
lines changed

.editorconfig

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
root = true
2+
3+
[*]
4+
charset = utf-8
5+
end_of_line = lf
6+
insert_final_newline = true
7+
trim_trailing_whitespace = true
8+
9+
[*.{js,ts,vue}]
10+
indent_style = space
11+
indent_size = 4
12+
13+
[*.json]
14+
indent_style = space
15+
indent_size = 2
16+
17+
[*.yml]
18+
indent_style = space
19+
indent_size = 2
20+
21+
[*.yaml]
22+
indent_style = space
23+
indent_size = 2
24+
25+
[*.md]
26+
trim_trailing_whitespace = false
27+
28+
[.github/workflows/*.yml]
29+
indent_style = space
30+
indent_size = 2

.gitignore

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

.nvmrc

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

Dockerfile

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# --- Stage 1: Builder ---
2+
FROM node:24-bookworm AS builder
3+
WORKDIR /app
4+
5+
# Install dependencies based on your lock file
6+
# Change to yarn.lock or pnpm-lock.yaml if you use those package managers
7+
COPY package.json package-lock.json* ./
8+
RUN npm install --frozen-lockfile
9+
10+
# Copy the rest of the application code
11+
COPY . .
12+
13+
# Build the Nuxt application
14+
# Ensure your package.json has a "build" script: "nuxt build"
15+
RUN npm run build
16+
17+
# --- Stage 2: Runner ---
18+
FROM node:24-bookworm AS runner
19+
WORKDIR /app
20+
21+
# Set environment to production
22+
ENV NODE_ENV=production
23+
# Optionally set HOST and PORT if needed, Nuxt defaults usually work
24+
# ENV HOST=0.0.0.0
25+
# ENV PORT=3000
26+
27+
# Copy built assets from the builder stage
28+
COPY --from=builder /app/.output ./.output
29+
# Optionally copy public assets if they are not part of .output
30+
# COPY --from=builder /app/public ./public
31+
32+
# Expose the port Nuxt listens on (default 3000)
33+
EXPOSE 3000
34+
35+
# Command to run the Nuxt production server
36+
# This starts the Node.js server built by Nuxt.
37+
CMD ["node", ".output/server/index.mjs"]

Makefile

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
# Executables (local)
2+
DOCKER_COMP = docker compose
3+
4+
# Docker containers
5+
NODE_CONT = $(DOCKER_COMP) exec nuxt
6+
7+
# Executables
8+
NPX = $(NODE_CONT) npx nuxi
9+
NPM = $(NODE_CONT) npm
10+
11+
# Misc
12+
.DEFAULT_GOAL = help
13+
.PHONY : help build up start down logs sh composer vendor sf cc test consolidate install
14+
15+
## —— 🎵 🐳 The Symfony Docker Makefile 🐳 🎵 ——————————————————————————————————
16+
help: ## Outputs this help screen
17+
@grep -E '(^[a-zA-Z0-9\./_-]+:.*?##.*$$)|(^##)' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}{printf "\033[32m%-30s\033[0m %s\n", $$1, $$2}' | sed -e 's/\[32m##/[33m/'
18+
19+
## —— Docker 🐳 ————————————————————————————————————————————————————————————————
20+
build: ## Builds the Docker images
21+
@$(DOCKER_COMP) build --pull --no-cache
22+
23+
up: ## Start the docker hub in detached mode (no logs)
24+
@$(DOCKER_COMP) up --detach
25+
26+
install: ## Start the docker hub in detached mode (no logs)
27+
@$(DOCKER_COMP) run --rm --entrypoint bash nuxt -c "npm install"
28+
29+
start: build up ## Build and start the containers
30+
31+
down: ## Stop the docker hub
32+
@$(DOCKER_COMP) down --remove-orphans
33+
34+
logs: ## Show live logs
35+
@$(DOCKER_COMP) logs --tail=0 --follow
36+
37+
sh: ## Connect to the FrankenPHP container
38+
@$(NODE_CONT) sh
39+
40+
bash: ## Connect to the FrankenPHP container via bash so up and down arrows go to previous commands
41+
@$(NODE_CONT) bash
42+
43+
## —— NPM 🧙 ——————————————————————————————————————————————————————————————
44+
npx: ## Run 'npx nuxi', pass the parameter "c=" to run a given command, example: make composer c='prepare'
45+
@$(eval c ?=)
46+
@$(NPX) $(c)
47+
48+
npm: ## Run npm, pass the parameter "c=" to run a given command, example: make composer c='install'
49+
@$(eval c ?=)
50+
@$(NPM) $(c)
51+
52+
## —— AI 🧠 ———————————————————————————————————————————————————————————————
53+
consolidate:
54+
@consolidate --ext=ts,vue,css,json,yaml,Dockerfile,md --exclude=package-lock.json,README.md,'*/.nuxt/*','*/.output/*','*/.data/*','*/docs/*'
55+
@cp ../hskstudykit-backend/docs/api.md api.txt

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.

app.vue

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<template>
2+
<UApp>
3+
<NuxtLayout>
4+
<NuxtPage />
5+
</NuxtLayout>
6+
</UApp>
7+
</template>

assets/css/main.css

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
@import "tailwindcss";
2+
@import "@nuxt/ui";

0 commit comments

Comments
 (0)