Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
node_modules
npm-debug.log
.git
.gitignore
.env
*.md
data/*.db
10 changes: 10 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Application settings
PORT=2019

# Database settings
SQLITE_DB_PATH=data/items.db

# Redis settings (legacy)
# REDIS_HOST=localhost
# REDIS_PORT=6379
# REDIS_PASSWORD=
2 changes: 0 additions & 2 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,7 @@ on:

jobs:
build:

runs-on: ubuntu-latest

strategy:
matrix:
node-version: [18.x, 20.x, 22.x]
Expand Down
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
.env
node_modules
node_modules
simple-app/values.yaml
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ This is a simple application that uses SQLite3 as the main database.
- Docker
- Minikube
- Kubernetes CLI (`kubectl`)
- Helm
- Helm

### Installation

Expand Down
Binary file modified data/items.db
Binary file not shown.
17 changes: 8 additions & 9 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
// jest.config.js
module.exports = {
testEnvironment: 'node',
testMatch: ['**/tests/**/*.test.js'],
testPathIgnorePatterns: ['/node_modules/', '/src/routes/'],
moduleDirectories: ['node_modules', 'src'],
verbose: true,
testTimeout: 10000,
setupFiles: ['dotenv/config']
};

testEnvironment: 'node',
testMatch: ['**/tests/**/*.test.js'],
testPathIgnorePatterns: ['/node_modules/', '/src/routes/', '/data/*.db-journal'],
moduleDirectories: ['node_modules', 'src'],
verbose: true,
testTimeout: 10000,
setupFiles: ['dotenv/config']
};
Loading