Compare commits

..

5 Commits

Author SHA1 Message Date
68187fe5c6 docker stuff 2025-06-10 01:05:39 +02:00
627b999423 src fix 2025-06-10 01:05:27 +02:00
feeba4ff00 dev env 2025-06-10 01:04:57 +02:00
b9bf840c84 data ignore 2025-06-10 01:04:11 +02:00
2af3030840 example data 2025-06-10 00:44:18 +02:00
8 changed files with 56 additions and 6 deletions

11
.env.development Normal file
View File

@@ -0,0 +1,11 @@
#XLSX
XLSX_AMOUNT_SOURCE=./example-data/saldos.xlsx
# Auth
AUTH_TRUST_HOST=false
AUTH_SECRET=fa428fc2e4c09d3b6dd914cfef0ddd1e
# Keycloak Configuration
KEYCLOAK_CLIENT_ID=karkarcar
KEYCLOAK_CLIENT_SECRET=fdI1OtyX0YNNUMqfcsbSMFTv9WfzQQwy
KEYCLOAK_ISSUER=http://localhost:8180/realms/master

1
.gitignore vendored
View File

@@ -22,3 +22,4 @@ pnpm-debug.log*
# jetbrains setting folder
.idea/
data/

26
Dockerfile Normal file
View File

@@ -0,0 +1,26 @@
FROM node:lts AS base
WORKDIR /app
# By copying only the package.json and package-lock.json here, we ensure that the following `-deps` steps are independent of the source code.
# Therefore, the `-deps` steps will be skipped if only the source code changes.
COPY package.json package-lock.json ./
FROM base AS prod-deps
RUN npm install --omit=dev
FROM base AS build-deps
RUN npm install
FROM build-deps AS build
COPY . .
RUN npm run build
FROM base AS runtime
COPY --from=prod-deps /app/node_modules ./node_modules
COPY --from=build /app/dist ./dist
ENV HOST=0.0.0.0
ENV PORT=4321
EXPOSE 4321
CMD node ./dist/server/entry.mjs

1
data Symbolic link
View File

@@ -0,0 +1 @@
example-data

16
docker-compose.yml Normal file
View File

@@ -0,0 +1,16 @@
version: '3.8'
services:
app:
container_name: karkarcar_app
build:
context: .
dockerfile: Dockerfile
ports:
- "4321:4321"
environment:
- HOST=0.0.0.0
- PORT=4321
restart: unless-stopped
volumes:
- ./example-data:/data

View File

@@ -1 +0,0 @@
,oier,XPS24,09.06.2025 18:50,file:///home/oier/.config/libreoffice/4;

Binary file not shown.

View File

@@ -5,11 +5,7 @@ interface Props {
const { title = "KarkarCar" } = Astro.props;
import { Image } from 'astro:assets';
import logo from './src/images/logo-urdina.png';
import './src/styles/global.css'
import '../styles/global.css'
---
<!DOCTYPE html>