-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from julwrites/rebuild
Total Rebuild from Nuxt3 Minimal Starter and a lot of hacking
- Loading branch information
Showing
77 changed files
with
6,798 additions
and
20,132 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# .dockerignore | ||
/.nuxt | ||
/.output | ||
/node_modules | ||
|
||
.gitignore | ||
README.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,8 @@ | ||
# Nuxt dev/build outputs | ||
.output | ||
.nuxt | ||
.nitro | ||
.cache | ||
dist | ||
|
||
# Node dependencies | ||
pnpm-lock.yaml | ||
node_modules | ||
|
||
# Logs | ||
logs | ||
*.log | ||
|
||
# Misc | ||
.DS_Store | ||
.fleet | ||
.idea | ||
|
||
# Local env files | ||
.nuxt | ||
.output | ||
.env | ||
.env.* | ||
!.env.example | ||
|
||
# SQLite files | ||
*.db | ||
|
||
# ESLint | ||
.eslintcache | ||
data |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# Use an official Node runtime as the base image | ||
FROM node:22-bookworm-slim | ||
|
||
# Set the working directory in the container | ||
WORKDIR /app | ||
|
||
# Copy package.json and pnpm-lock.yaml | ||
COPY package.json ./ | ||
|
||
# Install pnpm globally | ||
RUN npm install -g pnpm | ||
|
||
# Install dependencies | ||
RUN pnpm install | ||
|
||
# Copy the rest of the application code | ||
COPY . . | ||
|
||
# Build the application | ||
RUN pnpm run build | ||
|
||
# Expose the port the app runs on | ||
EXPOSE 3000 | ||
|
||
# Set the command to run the app | ||
CMD ["node", ".output/server/index.mjs"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,9 @@ | ||
<template> | ||
<div class="dark:bg-neutral-900 h-screen"> | ||
<VitePwaManifest /> | ||
<div> | ||
<NuxtPwaManifest /> | ||
<NuxtLoadingIndicator /> | ||
<NuxtLayout> | ||
<NuxtPage /> | ||
</NuxtLayout> | ||
<UNotifications /> | ||
</div> | ||
</template> | ||
</template> |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
export function useLocalStorage() { | ||
const setItem = (key: string, value: string) => { | ||
if (process.client) { | ||
localStorage.setItem(key, value); | ||
} | ||
}; | ||
|
||
const getItem = (key: string) => { | ||
if (process.client) { | ||
return localStorage.getItem(key); | ||
} | ||
return null; | ||
}; | ||
|
||
const removeItem = (key: string) => { | ||
if (process.client) { | ||
localStorage.removeItem(key); | ||
} | ||
}; | ||
|
||
return { | ||
setItem, | ||
getItem, | ||
removeItem, | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#!/bin/bash | ||
|
||
docker-compose down | ||
|
||
docker build . -t cash-register | ||
|
||
docker-compose up -d |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
version: "3" | ||
services: | ||
cash-register: | ||
# Use the built image from the Dockerfile | ||
image: cash-register # You might need to specify a tag if you're building multiple images | ||
ports: | ||
- "14321:3000" | ||
volumes: | ||
- /Users/julianteh/OneDrive/Chillian/Cash-Register/data:/app/data | ||
env_file: /Users/julianteh/OneDrive/Chillian/Cash-Register/data/cash-register.env |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
id,amount,description,date,category |
Oops, something went wrong.