Skip to content

Commit

Permalink
Merge pull request #15 from Glowstudent777/CachingWithRedis
Browse files Browse the repository at this point in the history
Caching with redis
  • Loading branch information
Glowstudent777 authored Jan 5, 2025
2 parents 0b8a6ef + b00a105 commit cfc1776
Show file tree
Hide file tree
Showing 11 changed files with 270 additions and 44 deletions.
3 changes: 2 additions & 1 deletion .env.schema
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
PORT=
API_PORT=
REDIS_URL=
11 changes: 0 additions & 11 deletions babel.config.js

This file was deleted.

16 changes: 16 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
services:
api:
build: .
ports:
- "3000:3000"

redis:
image: redis/redis-stack-server:latest
networks:
- dokploy-network
expose:
- "6379"

networks:
dokploy-network:
external: true
5 changes: 5 additions & 0 deletions docker-redis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
services:
redis:
image: redis/redis-stack-server:latest
ports:
- "6379:6379"
8 changes: 0 additions & 8 deletions gulpfile.js

This file was deleted.

19 changes: 8 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,11 @@
"types": "./dist/index.d.ts",
"main": "./dist/index.js",
"scripts": {
"build": "npm run babel && npx tsc",
"build": "npm run clean && npx tsc && npm run copyfiles",
"clean": "npx rimraf --glob dist/",
"copyfiles": "cp ./src/api/v1/core/db/ ./dist/api/v1/core/db/ -r",
"babel": "npm run clean && npx babel src -d dist --extensions .ts --no-copy-ignored && npm run copyfiles",
"start": "npm run build && node ./dist/index.js",
"dev": "tsc-watch --onSuccess \"node ./dist/index.js\"",
"dev": "npm run copyfiles && tsc-watch --onSuccess \"node ./dist/index.js\"",
"start": "node ./dist/index.js",
"test": "vitest",
"test:coverage": "vitest run --coverage"
},
Expand All @@ -33,24 +32,22 @@
"dotenv-extended": "^2.9.0",
"express": "^4.18.2",
"fs": "0.0.1-security",
"ioredis": "^5.4.2",
"path": "^0.12.7",
"redis": "^4.7.0",
"swagger-jsdoc": "^6.2.8",
"swagger-ui-express": "^5.0.1"
},
"devDependencies": {
"@babel/cli": "^7.26.4",
"@babel/core": "^7.26.0",
"@babel/preset-env": "^7.26.0",
"@babel/preset-typescript": "^7.26.0",
"@types/express": "^4.17.17",
"@types/ioredis": "^5.0.0",
"@types/node": "^18.13.0",
"@types/redis": "^4.0.11",
"@types/swagger-jsdoc": "^6.0.4",
"@types/swagger-ui-express": "^4.1.6",
"gulp": "^5.0.0",
"gulp-babel": "^8.0.0",
"rimraf": "^6.0.1",
"tsc-watch": "^6.0.0",
"typescript": "^4.9.5",
"vitest": "^1.6.0"
}
}
}
Loading

0 comments on commit cfc1776

Please sign in to comment.