You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/integrate/redisom-for-node-js/_index.md
+15-5Lines changed: 15 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,21 +16,31 @@ type: integration
16
16
weight: 9
17
17
---
18
18
19
-
This tutorial will show you how to build an API using Node.js and Redis Stack.
19
+
This tutorial will show you how to build a simple, RESTful API that reads, writes, and finds data on persons (including first name, last name, and age) using Node.js and Redis Stack. You'll also add a simple location tracking feature for a bit of extra interest. You'll be using [Express](https://expressjs.com/) and [Redis OM](https://github.com/redis/redis-om-node) to do this.
20
20
21
-
We'll be using [Express](https://expressjs.com/) and [Redis OM](https://github.com/redis/redis-om-node) to do this, and we assume that you have a basic understanding of Express.
21
+
## What is Redis OM?
22
22
23
-
The API we'll be building is a simple and relatively RESTful API that reads, writes, and finds data on persons: first name, last name, age, etc. We'll also add a simple location tracking feature just for a bit of extra interest.
23
+
Redis OM is an object-mapping library that provides high-level abstractions for working with Redis as a document database. You can use Redis OM to map Redis data types,specifically Hashes and JSON documents, to objects in your preferred programming language.
24
24
25
-
But before we start with the coding, let's start with a description of what Redis OM *is*.
25
+
Redis OM leverages the JSON and Redis Query Engine features included in Redis Stack, enabling you to:
26
26
27
+
-**Model your data** as objects with schemas and validation
28
+
-**Store and retrieve** complex data structures seamlessly
29
+
-**Search and query** your data using full-text search, numeric ranges, and geospatial queries
30
+
-**Index your data** automatically for optimal query performance
31
+
32
+
With Redis OM, you work with familiar object-oriented patterns while Redis Stack handles the underlying data storage, indexing, and querying efficiently.
33
+
34
+
{{< note >}}
35
+
Redis Stack was replaced by Redis Open Source as of version 8.0.
36
+
{{< /note >}}
27
37
28
38
## Prerequisites
29
39
30
40
Like anything software-related, you need to have some dependencies installed before you can get started:
31
41
32
42
-[Node.js 14.8+](https://nodejs.org/en/): In this tutorial, we're using JavaScript's top-level `await` feature which was introduced in Node 14.8. So, make sure you are using that version or later.
33
-
-[Redis Stack](/download): You need a version of Redis Stack, either running locally on your machine or [in the cloud](https://redis.com/try-free/?utm_source=redisio&utm_medium=referral&utm_campaign=2023-09-try_free&utm_content=cu-redis_cloud_users).
43
+
-[Redis Stack]({{< relref "/operate/oss_and_stack/install/archive/install-stack/" >}}): You need a version of Redis Stack, either running locally on your machine or [in the cloud](https://redis.com/try-free/?utm_source=redisio&utm_medium=referral&utm_campaign=2023-09-try_free&utm_content=cu-redis_cloud_users).
34
44
-[Redis Insight](https://redis.com/redis-enterprise/redis-insight/): We'll use this to look inside Redis and make sure our code is doing what we think it's doing.
0 commit comments