Compare commits

..

6 Commits

Author SHA1 Message Date
Aculix Technologies 24018ab582 Refactor Dockerfile to simplify dependency installation by removing package-lock.json handling 2025-10-16 13:45:57 +05:30
Aculix Technologies 0570969386 Remove package-lock.json and update Dockerfile to install dependencies with optional handling for Alpine/musl 2025-10-16 13:43:05 +05:30
Aculix Technologies 86b985be27 Update Dockerfile to install dependencies with optional handling 2025-10-16 13:35:19 +05:30
Aculix Technologies LLP a1de9e9b29 Create docker-publish.yml 2025-10-16 13:31:36 +05:30
Aculix Technologies LLP 5a34d69971 Create LICENSE 2025-10-16 13:24:43 +05:30
Aculix Technologies 3c846aad7d first commit 2025-10-16 13:22:41 +05:30
7 changed files with 7995 additions and 55 deletions
-7
View File
@@ -70,13 +70,6 @@ jobs:
uses: docker/metadata-action@96383f45573cb7f253c731d3b3ab81c87ef81934 # v5.0.0
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
tags: |
type=ref,event=branch
type=ref,event=pr
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=semver,pattern={{major}}
type=raw,value=latest,enable={{is_default_branch}}
# Build and push Docker image with Buildx (don't push on PR)
# https://github.com/docker/build-push-action
+2 -3
View File
@@ -1,3 +1,2 @@
/.DS_Store
/node_modules
/package-lock.json
/.dockerignore
/node_modules
+2 -18
View File
@@ -1,5 +1,4 @@
# Build stage
FROM node:20-alpine AS builder
FROM node:20-alpine
WORKDIR /app
@@ -13,19 +12,4 @@ RUN npm install --include=optional
COPY . .
# Build the application
RUN npm run build
# Production stage
FROM nginx:alpine
# Copy built files from builder stage
COPY --from=builder /app/dist /usr/share/nginx/html
# Copy nginx configuration (if needed)
# COPY nginx.conf /etc/nginx/conf.d/default.conf
# Expose port 80
EXPOSE 80
# Start nginx
CMD ["nginx", "-g", "daemon off;"]
RUN npm run build
+3 -25
View File
@@ -20,34 +20,12 @@ Built with Svelte for speed and simplicity. No overwhelming features, no endless
## 🚀 Getting Started
### Quick Start with Docker (Recommended)
Pull and run the pre-built Docker image:
```bash
# Pull the image
docker pull ghcr.io/aculix/negotium:main
# Run the container
docker run -d -p 3000:80 --name negotium ghcr.io/aculix/negotium:main
```
Then open `http://localhost:3000` in your browser.
To stop the container:
```bash
docker stop negotium
docker rm negotium
```
### Manual Installation
If you prefer to run the application locally without Docker:
### Installation
1. Clone the repository:
```bash
git clone <repository-url>
cd negotium
cd simple-do
```
2. Install dependencies:
@@ -62,7 +40,7 @@ npm run dev
4. Open `http://localhost:3000` in your browser
#### Build for Production
### Build for Production
```bash
npm run build
File diff suppressed because one or more lines are too long
+12 -1
View File
@@ -16,6 +16,17 @@
let draggedItem = null;
let draggedOverIndex = null;
const initialTasks = [
{ id: 1, text: 'Grocery shopping', completed: false, createdAt: Date.now() - 86400000 },
{ id: 2, text: "Book doctor's appointment", completed: false, createdAt: Date.now() - 172800000 },
{ id: 3, text: 'Pay bills', completed: true, createdAt: Date.now() - 259200000 },
{ id: 4, text: 'Finish project report', completed: false, createdAt: Date.now() - 345600000 },
{ id: 5, text: 'Call mom', completed: false, createdAt: Date.now() - 432000000 },
{ id: 6, text: 'Plan weekend trip', completed: true, createdAt: Date.now() - 518400000 },
{ id: 7, text: 'Read a chapter of a book', completed: false, createdAt: Date.now() - 604800000 },
{ id: 8, text: 'Exercise', completed: false, createdAt: Date.now() - 691200000 }
];
function addTask() {
if (newTask.trim()) {
tasks = [...tasks, {
@@ -103,7 +114,7 @@
if (savedTasks) {
tasks = JSON.parse(savedTasks);
} else {
tasks = [];
tasks = dateString === new Date().toDateString() ? initialTasks : [];
}
}
+5
View File
@@ -440,6 +440,11 @@ body {
width: 200px;
height: 200px;
margin: 0 auto 24px;
filter: brightness(0) saturate(100%) invert(46%) sepia(89%) saturate(2445%) hue-rotate(224deg) brightness(101%) contrast(98%);
}
.dark .lottie-animation {
filter: brightness(0) saturate(100%) invert(59%) sepia(51%) saturate(3127%) hue-rotate(218deg) brightness(103%) contrast(101%);
}
.empty-state p {