https://github.com/betterstack-community/hacker-news-redis
Node.js caching in Redis
https://github.com/betterstack-community/hacker-news-redis
Last synced: 3 months ago
JSON representation
Node.js caching in Redis
- Host: GitHub
- URL: https://github.com/betterstack-community/hacker-news-redis
- Owner: betterstack-community
- License: apache-2.0
- Created: 2022-03-06T17:16:22.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2022-03-09T09:33:49.000Z (about 4 years ago)
- Last Synced: 2025-02-23T06:44:06.448Z (over 1 year ago)
- Language: CSS
- Size: 220 KB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Hacker News Search App
Learn the basics of caching in Node.js by using Redis to cache API responses from Algolia's Hacker News API.
**Full tutorial**: [How to Set Up Redis for Caching in Node.js](https://betterstack.com/community/guides/scaling-nodejs/nodejs-caching-redis/).

## 🟢 Prerequisites
You must have Node.js, npm, and Redis installed on your machine. This project was built against the following versions:
- Node.js v16.14.0.
- npm v8.3.1.
- Redis v6.2.6
## 📦 Getting started
- Clone this repo to your machine
```shell
git clone https://github.com/betterstack-community/hacker-news-redis
```
- `cd` into the project folder and run `npm install` to download dependencies.
- Ensure the Redis server is up and running:
```
systemctl status redis
```
- Execute the command below to start the development server:
```shell
npm run dev
```
- Visit http://localhost:3000 in your browser.
## âš– License
The code used in this project and in the linked tutorial are licensed under the [Apache License, Version 2.0](LICENSE).