├── .dockerignore ├── .gitignore ├── .prettierrc ├── .template.env ├── .vscode └── settings.json ├── Dockerfile ├── README.md ├── cachemunk ├── .npmignore ├── README.md ├── cachemunk-1.0.0.tgz ├── package-lock.json ├── package.json ├── src │ └── cache.ts └── tsconfig.json ├── client ├── public │ └── images │ │ ├── circle_logo.png │ │ ├── happy_cachemunk_png_transparent.png │ │ ├── image-1.png │ │ └── sad_cachemunk_png_transparent.png ├── src │ ├── App.tsx │ ├── components │ │ ├── CacheMetricsChart.tsx │ │ ├── CacheStatus.tsx │ │ ├── CacheSwitch.tsx │ │ ├── ClearCacheButton.tsx │ │ ├── CustomInsertQuery.tsx │ │ ├── CustomSelectQuery.tsx │ │ ├── FrequencyDistribution.tsx │ │ ├── FrequencyDistribution2.tsx │ │ ├── Header.tsx │ │ ├── QueryBox.tsx │ │ ├── QueryResultBox.tsx │ │ ├── ResponseTimeChart.tsx │ │ ├── SubmitButton.tsx │ │ ├── SummaryBarChart.tsx │ │ └── SummaryContainer.tsx │ ├── data │ │ ├── responseTimes-cache.json │ │ └── responseTimes-no-cache.json │ ├── index.html │ ├── index.tsx │ ├── stylesheets │ │ └── styles.css │ └── theme.ts ├── tsconfig.json └── webpack.config.js ├── compose.yml ├── eslint.config.js ├── package.json ├── psql-cities-data └── world.sql ├── server ├── src │ ├── analytics.ts │ ├── benchmarks │ │ ├── benchmark.ts │ │ ├── benchmarkWrite.ts │ │ └── mock │ │ │ ├── data.ts │ │ │ └── generator.ts │ ├── cache │ │ ├── cache.ts │ │ └── redisClient.ts │ ├── controllers │ │ ├── cacheSize.ts │ │ ├── cachingController.ts │ │ ├── deleteCache.ts │ │ ├── dynamicController.ts │ │ ├── errorHandling.ts │ │ └── insertCity.ts │ ├── db.ts │ ├── queries │ │ ├── queries.ts │ │ └── queriesMap.ts │ ├── routers │ │ ├── cacheRouter.ts │ │ ├── dataRouter.ts │ │ └── no-cacheRouter.ts │ ├── server.ts │ └── util │ │ ├── savedStats │ │ ├── responseTimes-cache.json │ │ └── responseTimes-no-cache.json │ │ ├── stats.ts │ │ └── timing.ts └── tsconfig.json └── test ├── src ├── cache.test.ts ├── data.test.ts ├── stats.test.ts └── timing.test.ts └── tsconfig.json /.dockerignore: -------------------------------------------------------------------------------- 1 | .env -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oslabs-beta/CacheMunk/HEAD/.gitignore -------------------------------------------------------------------------------- /.prettierrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oslabs-beta/CacheMunk/HEAD/.prettierrc -------------------------------------------------------------------------------- /.template.env: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oslabs-beta/CacheMunk/HEAD/.template.env -------------------------------------------------------------------------------- /.vscode/settings.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oslabs-beta/CacheMunk/HEAD/.vscode/settings.json -------------------------------------------------------------------------------- /Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oslabs-beta/CacheMunk/HEAD/Dockerfile -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oslabs-beta/CacheMunk/HEAD/README.md -------------------------------------------------------------------------------- /cachemunk/.npmignore: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /cachemunk/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oslabs-beta/CacheMunk/HEAD/cachemunk/README.md -------------------------------------------------------------------------------- /cachemunk/cachemunk-1.0.0.tgz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oslabs-beta/CacheMunk/HEAD/cachemunk/cachemunk-1.0.0.tgz -------------------------------------------------------------------------------- /cachemunk/package-lock.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oslabs-beta/CacheMunk/HEAD/cachemunk/package-lock.json -------------------------------------------------------------------------------- /cachemunk/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oslabs-beta/CacheMunk/HEAD/cachemunk/package.json -------------------------------------------------------------------------------- /cachemunk/src/cache.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oslabs-beta/CacheMunk/HEAD/cachemunk/src/cache.ts -------------------------------------------------------------------------------- /cachemunk/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oslabs-beta/CacheMunk/HEAD/cachemunk/tsconfig.json -------------------------------------------------------------------------------- /client/public/images/circle_logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oslabs-beta/CacheMunk/HEAD/client/public/images/circle_logo.png -------------------------------------------------------------------------------- /client/public/images/happy_cachemunk_png_transparent.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oslabs-beta/CacheMunk/HEAD/client/public/images/happy_cachemunk_png_transparent.png -------------------------------------------------------------------------------- /client/public/images/image-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oslabs-beta/CacheMunk/HEAD/client/public/images/image-1.png -------------------------------------------------------------------------------- /client/public/images/sad_cachemunk_png_transparent.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oslabs-beta/CacheMunk/HEAD/client/public/images/sad_cachemunk_png_transparent.png -------------------------------------------------------------------------------- /client/src/App.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oslabs-beta/CacheMunk/HEAD/client/src/App.tsx -------------------------------------------------------------------------------- /client/src/components/CacheMetricsChart.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oslabs-beta/CacheMunk/HEAD/client/src/components/CacheMetricsChart.tsx -------------------------------------------------------------------------------- /client/src/components/CacheStatus.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oslabs-beta/CacheMunk/HEAD/client/src/components/CacheStatus.tsx -------------------------------------------------------------------------------- /client/src/components/CacheSwitch.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oslabs-beta/CacheMunk/HEAD/client/src/components/CacheSwitch.tsx -------------------------------------------------------------------------------- /client/src/components/ClearCacheButton.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oslabs-beta/CacheMunk/HEAD/client/src/components/ClearCacheButton.tsx -------------------------------------------------------------------------------- /client/src/components/CustomInsertQuery.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oslabs-beta/CacheMunk/HEAD/client/src/components/CustomInsertQuery.tsx -------------------------------------------------------------------------------- /client/src/components/CustomSelectQuery.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oslabs-beta/CacheMunk/HEAD/client/src/components/CustomSelectQuery.tsx -------------------------------------------------------------------------------- /client/src/components/FrequencyDistribution.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oslabs-beta/CacheMunk/HEAD/client/src/components/FrequencyDistribution.tsx -------------------------------------------------------------------------------- /client/src/components/FrequencyDistribution2.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oslabs-beta/CacheMunk/HEAD/client/src/components/FrequencyDistribution2.tsx -------------------------------------------------------------------------------- /client/src/components/Header.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oslabs-beta/CacheMunk/HEAD/client/src/components/Header.tsx -------------------------------------------------------------------------------- /client/src/components/QueryBox.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oslabs-beta/CacheMunk/HEAD/client/src/components/QueryBox.tsx -------------------------------------------------------------------------------- /client/src/components/QueryResultBox.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oslabs-beta/CacheMunk/HEAD/client/src/components/QueryResultBox.tsx -------------------------------------------------------------------------------- /client/src/components/ResponseTimeChart.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oslabs-beta/CacheMunk/HEAD/client/src/components/ResponseTimeChart.tsx -------------------------------------------------------------------------------- /client/src/components/SubmitButton.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oslabs-beta/CacheMunk/HEAD/client/src/components/SubmitButton.tsx -------------------------------------------------------------------------------- /client/src/components/SummaryBarChart.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oslabs-beta/CacheMunk/HEAD/client/src/components/SummaryBarChart.tsx -------------------------------------------------------------------------------- /client/src/components/SummaryContainer.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oslabs-beta/CacheMunk/HEAD/client/src/components/SummaryContainer.tsx -------------------------------------------------------------------------------- /client/src/data/responseTimes-cache.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oslabs-beta/CacheMunk/HEAD/client/src/data/responseTimes-cache.json -------------------------------------------------------------------------------- /client/src/data/responseTimes-no-cache.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oslabs-beta/CacheMunk/HEAD/client/src/data/responseTimes-no-cache.json -------------------------------------------------------------------------------- /client/src/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oslabs-beta/CacheMunk/HEAD/client/src/index.html -------------------------------------------------------------------------------- /client/src/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oslabs-beta/CacheMunk/HEAD/client/src/index.tsx -------------------------------------------------------------------------------- /client/src/stylesheets/styles.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oslabs-beta/CacheMunk/HEAD/client/src/stylesheets/styles.css -------------------------------------------------------------------------------- /client/src/theme.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oslabs-beta/CacheMunk/HEAD/client/src/theme.ts -------------------------------------------------------------------------------- /client/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oslabs-beta/CacheMunk/HEAD/client/tsconfig.json -------------------------------------------------------------------------------- /client/webpack.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oslabs-beta/CacheMunk/HEAD/client/webpack.config.js -------------------------------------------------------------------------------- /compose.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oslabs-beta/CacheMunk/HEAD/compose.yml -------------------------------------------------------------------------------- /eslint.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oslabs-beta/CacheMunk/HEAD/eslint.config.js -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oslabs-beta/CacheMunk/HEAD/package.json -------------------------------------------------------------------------------- /psql-cities-data/world.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oslabs-beta/CacheMunk/HEAD/psql-cities-data/world.sql -------------------------------------------------------------------------------- /server/src/analytics.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oslabs-beta/CacheMunk/HEAD/server/src/analytics.ts -------------------------------------------------------------------------------- /server/src/benchmarks/benchmark.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oslabs-beta/CacheMunk/HEAD/server/src/benchmarks/benchmark.ts -------------------------------------------------------------------------------- /server/src/benchmarks/benchmarkWrite.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oslabs-beta/CacheMunk/HEAD/server/src/benchmarks/benchmarkWrite.ts -------------------------------------------------------------------------------- /server/src/benchmarks/mock/data.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oslabs-beta/CacheMunk/HEAD/server/src/benchmarks/mock/data.ts -------------------------------------------------------------------------------- /server/src/benchmarks/mock/generator.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oslabs-beta/CacheMunk/HEAD/server/src/benchmarks/mock/generator.ts -------------------------------------------------------------------------------- /server/src/cache/cache.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oslabs-beta/CacheMunk/HEAD/server/src/cache/cache.ts -------------------------------------------------------------------------------- /server/src/cache/redisClient.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oslabs-beta/CacheMunk/HEAD/server/src/cache/redisClient.ts -------------------------------------------------------------------------------- /server/src/controllers/cacheSize.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oslabs-beta/CacheMunk/HEAD/server/src/controllers/cacheSize.ts -------------------------------------------------------------------------------- /server/src/controllers/cachingController.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oslabs-beta/CacheMunk/HEAD/server/src/controllers/cachingController.ts -------------------------------------------------------------------------------- /server/src/controllers/deleteCache.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oslabs-beta/CacheMunk/HEAD/server/src/controllers/deleteCache.ts -------------------------------------------------------------------------------- /server/src/controllers/dynamicController.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oslabs-beta/CacheMunk/HEAD/server/src/controllers/dynamicController.ts -------------------------------------------------------------------------------- /server/src/controllers/errorHandling.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oslabs-beta/CacheMunk/HEAD/server/src/controllers/errorHandling.ts -------------------------------------------------------------------------------- /server/src/controllers/insertCity.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oslabs-beta/CacheMunk/HEAD/server/src/controllers/insertCity.ts -------------------------------------------------------------------------------- /server/src/db.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oslabs-beta/CacheMunk/HEAD/server/src/db.ts -------------------------------------------------------------------------------- /server/src/queries/queries.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oslabs-beta/CacheMunk/HEAD/server/src/queries/queries.ts -------------------------------------------------------------------------------- /server/src/queries/queriesMap.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oslabs-beta/CacheMunk/HEAD/server/src/queries/queriesMap.ts -------------------------------------------------------------------------------- /server/src/routers/cacheRouter.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oslabs-beta/CacheMunk/HEAD/server/src/routers/cacheRouter.ts -------------------------------------------------------------------------------- /server/src/routers/dataRouter.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oslabs-beta/CacheMunk/HEAD/server/src/routers/dataRouter.ts -------------------------------------------------------------------------------- /server/src/routers/no-cacheRouter.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oslabs-beta/CacheMunk/HEAD/server/src/routers/no-cacheRouter.ts -------------------------------------------------------------------------------- /server/src/server.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oslabs-beta/CacheMunk/HEAD/server/src/server.ts -------------------------------------------------------------------------------- /server/src/util/savedStats/responseTimes-cache.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oslabs-beta/CacheMunk/HEAD/server/src/util/savedStats/responseTimes-cache.json -------------------------------------------------------------------------------- /server/src/util/savedStats/responseTimes-no-cache.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oslabs-beta/CacheMunk/HEAD/server/src/util/savedStats/responseTimes-no-cache.json -------------------------------------------------------------------------------- /server/src/util/stats.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oslabs-beta/CacheMunk/HEAD/server/src/util/stats.ts -------------------------------------------------------------------------------- /server/src/util/timing.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oslabs-beta/CacheMunk/HEAD/server/src/util/timing.ts -------------------------------------------------------------------------------- /server/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oslabs-beta/CacheMunk/HEAD/server/tsconfig.json -------------------------------------------------------------------------------- /test/src/cache.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oslabs-beta/CacheMunk/HEAD/test/src/cache.test.ts -------------------------------------------------------------------------------- /test/src/data.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oslabs-beta/CacheMunk/HEAD/test/src/data.test.ts -------------------------------------------------------------------------------- /test/src/stats.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oslabs-beta/CacheMunk/HEAD/test/src/stats.test.ts -------------------------------------------------------------------------------- /test/src/timing.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oslabs-beta/CacheMunk/HEAD/test/src/timing.test.ts -------------------------------------------------------------------------------- /test/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oslabs-beta/CacheMunk/HEAD/test/tsconfig.json --------------------------------------------------------------------------------