@@ -132,7 +132,7 @@ Please note that this method won't allow you to choose Redis Modules while creat
132132
133133Under this section, we will be creating Heroku account, use Heroku CLI to login and add Redis Enterprise Cloud as an add-on.
134134
135- ### Step 1: Install Heroku on MacOS
135+ ### Step 1: Install Heroku
136136
137137
138138 ``` bash
@@ -150,74 +150,102 @@ Assuming that you already have Heroku account created, run the below command to
150150 Logged in as your_email_address
151151 ```
152152
153- ### Step 2: Installing Redis Enterprise Cloud Add-on
154153
155154
156- Create a Heroku app
155+ ### Step 2: Cloning the application
157156
158157 ``` bash
159- heroku apps:create kickstartredis
160- Creating ⬢ kickstartredis... done
161- https://kickstartredis.herokuapp.com/ | https://git.heroku.com/kickstartredis.git
158+ $ git clone https://github.com/redis-developer/basic-redis-rate-limiting-demo-nodejs
162159 ```
163160
164- Ensure that you don’t have existing add-ons added in your account.
165161
162+ ### Step 3. Create a heroku app
166163
167- ``` bash
168- $ heroku addons:create rediscloud -a kickstartredis
169- Creating rediscloud on ⬢ kickstartredis... free
170- Created rediscloud-cylindrical-24439 as REDISCLOUD_URL
171- Use heroku addons:docs rediscloud to view documentation
164+
165+ ```
166+ $ heroku create
167+ Creating app... done, ⬢ lit-island-48230
168+ https://lit-island-48230.herokuapp.com/ | https://git.heroku.com/lit-island-48230.git
172169 ```
173170
174171
172+ ### Step 4. Start by installing the add-on:
173+
174+ Ensure that you don’t have existing add-ons added in your account.
175+
176+
177+ ``` bash
178+ $ heroku addons:create rediscloud -a lit-island-48230
179+ Creating rediscloud on ⬢ lit-island-48230... free
180+ Created rediscloud-asymmetrical-85190 as REDISCLOUD_URL
181+ Use heroku addons:docs rediscloud to view documentation
182+ ```
183+
184+
175185Once Redis Cloud has been added, you will notice a REDISCLOUD_URL config vars in your heroku config containing the username, password, hostname and port of your first Redis Cloud database.
176186
177187
178- ``` bash
179- $ heroku config:get REDISCLOUD_URL -a kickstartredis
180- redis://default:password @redis-11324.c82 .us-east-1-2.ec2.cloud.redislabs.com:11324
181- ```
188+ ``` bash
189+ heroku config:get REDISCLOUD_URL -a lit-island-48230
190+ redis://default:ajSE7DuqhmGG7u2ZbSU0HTuEqTx1FuEQ @redis-17268.c256 .us-east-1-2.ec2.cloud.redislabs.com:17268
191+ ```
182192
183- ``` bash
184- $ heroku addons:info rediscloud
185- === rediscloud-cylindrical-24439
186- Attachments: kickstartredis::REDISCLOUD
187- Installed at: Fri Mar 19 2021 17:16:18 GMT+0530 (India Standard Time)
188- Owning app: kickstartredis
189- Plan: rediscloud:30
190- Price: free
191- State: created
193+
194+ ``` bash
195+ $ heroku addons:info rediscloud
196+ === rediscloud-asymmetrical-85190
197+ Attachments: lit-island-48230::REDISCLOUD
198+ Installed at: Fri Mar 26 2021 07:52:43 GMT+0530 (India Standard Time)
199+ Owning app: lit-island-48230
200+ Plan: rediscloud:30
201+ Price: free
202+ State: created
192203 ```
193204
194205
195206 ``` bash
196- $ heroku config -a kickstartredis
197- === kickstartredis Config Vars
198- REDISCLOUD_URL: redis://default:password @redis-15951.c232 .us-east-1-2.ec2.cloud.redislabs.com:15951
207+ heroku config -a lit-island-48230
208+ === lit-island-48230 Config Vars
209+ REDISCLOUD_URL: redis://default:ajSE7DuqhmGG7u2ZbSU0HTuEqTx1FuEQ @redis-17268.c256 .us-east-1-2.ec2.cloud.redislabs.com:17268
199210 ```
200211
201- ### Step 3: Accessing the database
202212
203213
214+ ### Step 5. Accessing the Redis Enterprise Cloud dashboard
215+
216+ Go to Heroku and click on “Installed add-ons”
217+
218+ ![ heroku] ( heroku_addons.png )
219+
220+ Click on “Redis Enterprise Cloud” and it will be redirected over Redis Enterprise Cloud Dashboard
221+
222+ ![ heroku] ( heroku_rediscloud1.png )
223+
224+
225+
226+ ### Step 6. Pushing the code to Heroku
227+
204228 ``` bash
205- $ redis-cli -h redis-11324.c82.us-east-1-2.ec2.cloud.redislabs.com -p 11324
206- redis-11324.c82.us-east-1-2.ec2.cloud.redislabs.com:11324> auth default showspassword
207- OK
208- redis-11324.c82.us-east-1-2.ec2.cloud.redislabs.com:11324>
229+ $ git push heroku
230+
231+
232+ remote: -----> Launching...
233+ remote: Released v8
234+ remote: https://lit-island-48230.herokuapp.com/ deployed to Heroku
235+ remote:
236+ remote: Verifying deploy... done.
237+ To https://git.heroku.com/lit-island-48230.git
238+ * [new branch] master -> master
209239 ```
210240
211- You can even browse it through Heroku Dashboard:
241+ ### Step 7. Accessing the rate limiting application
212242
243+ Open https://lit-island-48230.herokuapp.com/ and access the rate limiting app.
213244
214- ![ heroku] ( heroku_selectrecloud.png )
215245
216- Click on “Redis Enterprise Cloud” and it will be redirected over Redis Enterprise Cloud Dashboard
217246
218- ![ heroku] ( heroku_recloud .png)
247+ ![ heroku] ( heroku_ratelimiting1 .png)
219248
220- As shown above, a database called "redis-kickstartredis-XXX" gets created over Redis Enterprise Cloud dashboard.
221249
222250
223251
0 commit comments