{"id":21672473,"url":"https://github.com/redis-developer/basic-caching-demo-nodejs","last_synced_at":"2025-03-20T08:27:00.751Z","repository":{"id":42666996,"uuid":"323480725","full_name":"redis-developer/basic-caching-demo-nodejs","owner":"redis-developer","description":"This is an example demo app that shows how Redis caching works using Nodejs","archived":false,"fork":false,"pushed_at":"2023-06-27T07:13:00.000Z","size":1770,"stargazers_count":19,"open_issues_count":2,"forks_count":19,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-03-11T07:42:00.030Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Vue","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/redis-developer.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-12-22T00:35:56.000Z","updated_at":"2024-07-27T03:42:14.000Z","dependencies_parsed_at":"2022-08-30T22:41:26.893Z","dependency_job_id":null,"html_url":"https://github.com/redis-developer/basic-caching-demo-nodejs","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/redis-developer%2Fbasic-caching-demo-nodejs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/redis-developer%2Fbasic-caching-demo-nodejs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/redis-developer%2Fbasic-caching-demo-nodejs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/redis-developer%2Fbasic-caching-demo-nodejs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/redis-developer","download_url":"https://codeload.github.com/redis-developer/basic-caching-demo-nodejs/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244576929,"owners_count":20475213,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-25T13:29:24.956Z","updated_at":"2025-03-20T08:27:00.729Z","avatar_url":"https://github.com/redis-developer.png","language":"Vue","readme":"\n\n\n\u003cdiv style=\"height: 150px\"\u003e\u003c/div\u003e\n\n# Basic Redis Caching Demo\n\nThis app returns the number of repositories a Github account has. When you first search for an account, the server calls Github's API to return the response. This can take 100s of milliseconds. The server then adds the details of this slow response to Redis for future requests. When you search again, the next response comes directly from Redis cache instead of calling Github. The responses are usually returned in a millisecond or so making it blazing fast.\n\n# Overview video\n\nHere's a short video that explains the project and how it uses Redis:\n\n[![Watch the video on YouTube](https://github.com/redis-developer/basic-caching-demo-nodejs/raw/main/docs/YTThumbnail.png)](https://youtube.com/watch?v=Ov18gLo0Da8)\n\n## Try it out\n\n#### Deploy to Heroku\n\n\u003cp\u003e\n    \u003ca href=\"https://heroku.com/deploy\" target=\"_blank\"\u003e\n        \u003cimg src=\"https://www.herokucdn.com/deploy/button.svg\" alt=\"Deploy to Heorku\" /\u003e\n    \u003c/a\u003e\n\u003c/p\u003e\n\n#### Deploy to Vercel:\n\n\u003cp\u003e\n\n\u003ca href=\"https://vercel.com/new/git/external?repository-url=https%3A%2F%2Fgithub.com%2Fredis-developer%2Fbasic-caching-demo-nodejs\u0026env=REDIS_ENDPOINT_URI,REDIS_PASSWORD\u0026envDescription=REDIS_ENDPOINT_URI%20is%20required%20at%20least%20to%20connect%20to%20Redis%20clouding%20server\" target=\"_blank\"\u003e\n        \u003cimg src=\"https://vercel.com/button\" alt=\"Deploy with Vercel\" width=\"150px\" height=\"41\"/\u003e\n    \u003c/a\u003e\n\u003c/p\u003e\n\n\n#### Deploy to Google Cloud\n\u003cp\u003e\n    \u003ca href=\"https://deploy.cloud.run\" target=\"_blank\"\u003e\n        \u003cimg src=\"https://deploy.cloud.run/button.svg\" alt=\"Run on Google Cloud\" width=\"150px\"/\u003e\n    \u003c/a\u003e\n\u003c/p\u003e\n\n\n## How it works?\n\n![How it works](https://github.com/redis-developer/basic-caching-demo-nodejs/raw/main/docs/screenshot001.png)\n\n\n### 1. How the data is stored:\n```\nSETEX microsoft 3600 1000\n```\n\n### 2. How the data is accessed:\n```\nGET microsoft\n```\n\n## How to run it locally?\n\n#### Copy `.env.sample` to create `.env`. And provide the values for environment variables\n\n    - REDIS_ENDPOINT_URI: Redis server URI\n    - REDIS_PASSWORD: Password to the server\n\n#### Run frontend\n\n```sh\ncd client\nyarn\nyarn serve\n```\n\n#### Run backend\n\n``` sh\nyarn\nyarn start\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fredis-developer%2Fbasic-caching-demo-nodejs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fredis-developer%2Fbasic-caching-demo-nodejs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fredis-developer%2Fbasic-caching-demo-nodejs/lists"}