Skip to content

Commit

Permalink
@site/src/theme/ -> @theme/
Browse files Browse the repository at this point in the history
  • Loading branch information
wjohnsto committed Nov 10, 2022
1 parent b8b4ae6 commit 738662e
Show file tree
Hide file tree
Showing 213 changed files with 293 additions and 295 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ slug: /create/aws/analytics-using-aws
authors: [ajeet]
---

import Authors from '@site/src/theme/Authors';
import Authors from '@theme/Authors';

<Authors frontMatter={frontMatter} />

Expand Down
2 changes: 1 addition & 1 deletion docs/create/aws/bidding-on-aws/index-bidding-on-aws.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ slug: /create/aws/bidding-on-aws
authors: [ajeet]
---

import Authors from '@site/src/theme/Authors';
import Authors from '@theme/Authors';

<Authors frontMatter={frontMatter} />

Expand Down
2 changes: 1 addition & 1 deletion docs/create/aws/chatapp/index-chatapp.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ slug: /create/aws/chatapp
authors: [ajeet]
---

import Authors from '@site/src/theme/Authors';
import Authors from '@theme/Authors';

<Authors frontMatter={frontMatter} />

Expand Down
27 changes: 13 additions & 14 deletions docs/create/aws/chatapp/index-chatapp.mdx_python
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ slug: /howtos/chatapp
import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';
import useBaseUrl from '@docusaurus/useBaseUrl';
import RedisCard from '@site/src/theme/RedisCard';
import RedisCard from '@theme/RedisCard';


In this tutorial, we will see how to build a basic chat application built with Flask, Socket.IO and Redis.
Expand All @@ -28,7 +28,7 @@ In this tutorial, we will see how to build a basic chat application built with F

- Python 3.6+

### Step 2. Clone the repository
### Step 2. Clone the repository

```
git clone https://github.com/redis-developer/basic-redis-chat-app-demo-python
Expand Down Expand Up @@ -81,7 +81,7 @@ python3 app.py
```

```
python3 app.py
python3 app.py
* Restarting with stat
* Debugger is active!
* Debugger PIN: 220-696-610
Expand All @@ -103,30 +103,30 @@ The demo data initialization is handled in multiple steps:

#### Creating of demo users

We create a new user id: INCR total_users. Then we set a user ID lookup key by user name: e.g.
We create a new user id: INCR total_users. Then we set a user ID lookup key by user name: e.g.

```
SET username:nick user:1
```

And finally, the rest of the data is written to the hash set: e.g. HSET user:1 username "nick" password "bcrypt_hashed_password".

Additionally, each user is added to the default "General" room.
For handling rooms for each user, we have a set that holds the room ids. Here's an example command of how to add the room:
Additionally, each user is added to the default "General" room.
For handling rooms for each user, we have a set that holds the room ids. Here's an example command of how to add the room:

```
SADD user:1:rooms "0"
```

Populate private messages between users. At first, private rooms are created: if a private room needs to be established, for each user a room id: room:1:2 is generated, where numbers correspond to the user ids in ascending order.

E.g. Create a private room between 2 users:
E.g. Create a private room between 2 users:

```
SADD user:1:rooms 1:2 and SADD user:2:rooms 1:2
```

Then we add messages to this room by writing to a sorted set:
Then we add messages to this room by writing to a sorted set:

```
ZADD room:1:2 1615480369 "{'from': 1, 'date': 1615480369, 'message': 'Hello', 'roomId': '1:2'}"
Expand Down Expand Up @@ -198,7 +198,7 @@ User data is stored in a hash set where each user entry contains the next values

### How the data is accessed:

Get User HGETALL user:{id}.
Get User HGETALL user:{id}.

```
HGETALL user:2
Expand All @@ -208,17 +208,17 @@ where we get data for the user with id: 2.

- Online users: SMEMBERS online_users. This will return ids of users which are online

- Get room ids of a user: SMEMBERS user:{id}:rooms.
Example:
- Get room ids of a user: SMEMBERS user:{id}:rooms.
Example:

```
SMEMBERS user:2:rooms
```

This will return IDs of rooms for user with ID: 2

- Get list of messages ZREVRANGE room:{roomId} {offset_start} {offset_end}.
Example:
- Get list of messages ZREVRANGE room:{roomId} {offset_start} {offset_end}.
Example:

```
ZREVRANGE room:1:2 0 50
Expand All @@ -244,4 +244,3 @@ It will return 50 messages with 0 offsets for the private room between users wit

</TabItem>
</Tabs>

Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ slug: /create/aws/import/database-migration-aws-elasticache-redis-enterprise-clo
authors: [ajeet]
---

import Authors from '@site/src/theme/Authors';
import Authors from '@theme/Authors';

<Authors frontMatter={frontMatter} />

Expand Down
4 changes: 2 additions & 2 deletions docs/create/aws/index-aws.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ sidebar_label: Overview
slug: /create/aws
---

import RedisCard from '@site/src/theme/RedisCard';
import RedisCard from '@theme/RedisCard';

The following links provide you with the available options to run apps on AWS using Redis:

Expand Down Expand Up @@ -48,7 +48,7 @@ The following links provide you with the available options to run apps on AWS us
page="/create/aws/import/database-migration-aws-elasticache-redis-enterprise-cloud"
/>
</div>

<div class="col">
<RedisCard
title="How to Build a Real-Time Chat application on AWS using Python and Redis"
Expand Down
2 changes: 1 addition & 1 deletion docs/create/aws/redis-on-aws/index-redis-on-aws.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ slug: /create/aws/redis-on-aws
authors: [ajeet]
---

import Authors from '@site/src/theme/Authors';
import Authors from '@theme/Authors';

<Authors frontMatter={frontMatter} />

Expand Down
2 changes: 1 addition & 1 deletion docs/create/aws/slackbot/index-slackbot.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ slug: /create/aws/slackbot
authors: [ajeet]
---

import Authors from '@site/src/theme/Authors';
import Authors from '@theme/Authors';

<Authors frontMatter={frontMatter} />

Expand Down
2 changes: 1 addition & 1 deletion docs/create/aws/terraform/index-terraform.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ slug: /create/aws/terraform
authors: [ajeet, rahul]
---

import Authors from '@site/src/theme/Authors';
import Authors from '@theme/Authors';

<Authors frontMatter={frontMatter} />

Expand Down
2 changes: 1 addition & 1 deletion docs/create/azure/index-azure.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ sidebar_label: Overview
slug: /create/azure
---

import RedisCard from '@site/src/theme/RedisCard';
import RedisCard from '@theme/RedisCard';

The following links provides you with the available options for create instances of Azure Cache for Redis

Expand Down
2 changes: 1 addition & 1 deletion docs/create/azurefunctions/index-azurefunctions.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ slug: /create/azurefunctions
authors: [ajeet]
---

import Authors from '@site/src/theme/Authors';
import Authors from '@theme/Authors';

<Authors frontMatter={frontMatter} />

Expand Down
2 changes: 1 addition & 1 deletion docs/create/cloudrun/index-cloudrun.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ slug: /create/cloudrun
authors: [ajeet]
---

import Authors from '@site/src/theme/Authors';
import Authors from '@theme/Authors';

<Authors frontMatter={frontMatter} />

Expand Down
2 changes: 1 addition & 1 deletion docs/create/docker/index-docker.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ sidebar_label: Overview
slug: /create/docker/
---

import RedisCard from '@site/src/theme/RedisCard';
import RedisCard from '@theme/RedisCard';

The following links provide you with the available options to create a new Redis database using Docker

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ slug: /create/docker/nodejs-nginx-redis
authors: [ajeet]
---

import Authors from '@site/src/theme/Authors';
import Authors from '@theme/Authors';

<Authors frontMatter={frontMatter} />

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ authors: [ajeet]

import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';
import Authors from '@site/src/theme/Authors';
import Authors from '@theme/Authors';

<Authors frontMatter={frontMatter} />

Expand Down
2 changes: 1 addition & 1 deletion docs/create/from-source/index-from-source.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ slug: /create/from-source/
authors: [ajeet]
---

import Authors from '@site/src/theme/Authors';
import Authors from '@theme/Authors';

<Authors frontMatter={frontMatter} />

Expand Down
2 changes: 1 addition & 1 deletion docs/create/gcp/index-gcp.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ slug: /create/gcp
authors: [ajeet]
---

import Authors from '@site/src/theme/Authors';
import Authors from '@theme/Authors';

<Authors frontMatter={frontMatter} />

Expand Down
2 changes: 1 addition & 1 deletion docs/create/heroku/herokugo/index-herokugo.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ slug: /create/heroku/herokugo
authors: [ajeet]
---

import Authors from '@site/src/theme/Authors';
import Authors from '@theme/Authors';

<Authors frontMatter={frontMatter} />

Expand Down
2 changes: 1 addition & 1 deletion docs/create/heroku/herokujava/index-herokujava.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ slug: /create/heroku/herokujava
authors: [ajeet]
---

import Authors from '@site/src/theme/Authors';
import Authors from '@theme/Authors';

<Authors frontMatter={frontMatter} />

Expand Down
2 changes: 1 addition & 1 deletion docs/create/heroku/herokunodejs/index-herokunodejs.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ slug: /create/heroku/herokunodejs
authors: [ajeet]
---

import Authors from '@site/src/theme/Authors';
import Authors from '@theme/Authors';

<Authors frontMatter={frontMatter} />

Expand Down
2 changes: 1 addition & 1 deletion docs/create/heroku/herokupython/index-herokupython.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ slug: /create/heroku/herokupython
authors: [ajeet]
---

import Authors from '@site/src/theme/Authors';
import Authors from '@theme/Authors';

<Authors frontMatter={frontMatter} />

Expand Down
2 changes: 1 addition & 1 deletion docs/create/heroku/herokuruby/index-herokuruby.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ slug: /create/heroku/herokuruby
authors: [ajeet]
---

import Authors from '@site/src/theme/Authors';
import Authors from '@theme/Authors';

<Authors frontMatter={frontMatter} />

Expand Down
2 changes: 1 addition & 1 deletion docs/create/heroku/index-heroku.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ sidebar_label: Overview
slug: /create/heroku
---

import RedisCard from '@site/src/theme/RedisCard';
import RedisCard from '@theme/RedisCard';

The following links provide you with the available options to run apps on Heroku using Redis:

Expand Down
2 changes: 1 addition & 1 deletion docs/create/heroku/portal/index-heroku.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ authors: [ajeet]

import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';
import Authors from '@site/src/theme/Authors';
import Authors from '@theme/Authors';

<Authors frontMatter={frontMatter} />

Expand Down
Loading

0 comments on commit 738662e

Please sign in to comment.