Skip to content

Commit

Permalink
remove Vagrantfile & update Windows installation instructions to poin…
Browse files Browse the repository at this point in the history
  • Loading branch information
nelsonic committed Jul 15, 2016
1 parent bdc5c0e commit bc886ce
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 100 deletions.
50 changes: 1 addition & 49 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,55 +90,7 @@ brew install redis

#### Windows?

> For people *stuck* on Windows (if you don't already have a **C Compiler** and people who prefer to "contain" their apps...)
***we recommend*** using [***Vagrant***](https://github.com/docdis/learn-vagrant)
to run Redis (and your app) in a (Linux) Virtual Machine (VM).
> We have included a Vagrantfile in this repo which you can use to
get Redis & Node.js working on ***any*** machine. simply:

```sh
git clone https://github.com/nelsonic/learn-redis.git && cd learn-redis
vagrant up
vagrant ssh
```
These three commands will
1. Clone the repo and move into the new directory
2. Download and install the Ubuntu VM and latest Redis and Node.js
(and start Redis server on TCP Port 6379)
3. SSH into the Vagrant (Ubuntu) VM so you can use the vagrant CLI


To boot the VM with Redis open a new terminal window/tab (in the learn-redis directory) and issue the command: `vagrant up`
![learn-redis-vagrant-up](https://cloud.githubusercontent.com/assets/194400/7217523/747eeb3c-e627-11e4-8289-0b82c0fff909.png)

After a few minutes of downloading & installing you will see that Redis is running:
![learn-vagrant-redis-running](https://cloud.githubusercontent.com/assets/194400/7218144/febe2b56-e653-11e4-88cf-859a65ccd9f2.png)

on **Port 6379** and **PID** (process ID) **5786**
![learn-redis-vagrant-ssh-redis-running](https://cloud.githubusercontent.com/assets/194400/7217526/748d0fdc-e627-11e4-8075-56c1f5e8ca22.png)

To use Redis from the **command line** (open a new terminal window/tab and) log into the VM using `vagrant ssh`:
![learn-redis-vagrant-ssh](https://cloud.githubusercontent.com/assets/194400/7217524/7486d3e2-e627-11e4-8e28-e2fa05c8d431.png)

Then confirm that the **CLI** is working by issuing the command `redis-cli ping`: http://stackoverflow.com/questions/10137857/is-redis-just-a-cache
![learn-redis-vagrant-ssh-redis-ping](https://cloud.githubusercontent.com/assets/194400/7217525/7489c638-e627-11e4-9ca6-ca710dd54915.png)

To **exit** the VM you just logged into, simply type `exit` in the terminal and hit the [return] key.
![learn-redis-exit-vagrant-vm](https://cloud.githubusercontent.com/assets/194400/7218297/3bd595b4-e65f-11e4-8b3a-108a8243d486.png)

To **close** the Redis **server** runing on the VM, press the [ctrl] + [C] keys on your keyboard (*twice*).
![learn-redis-exit-redis](https://cloud.githubusercontent.com/assets/194400/7218303/8e4f314c-e65f-11e4-8961-8dbfe4442883.png)

And to **shut down** the Vagrant VM (to free up the memory on your computer),
issue the `vagrant halt` command in your terminal:
![learn-redis-vagrant-halt](https://cloud.githubusercontent.com/assets/194400/7218308/e881bcc0-e65f-11e4-8d0d-fe8559fe45f0.png)

**Note**: your **VM** is ***preserved*** (still saved on your hard drive) so you can use it again for further redis-development simply by issuing the `vagrant up` command (from within a working directory that has the Vagrantfile and .vagrant)
If you are short on disk space, you can always **delete** the VM *completely* by issuing the `vagrant destroy` command.
**Note**: If you are *running Linux* on your laptop/dev machine
and prefer not to have the overhead of running Vagrant
you can simply **copy** the **installation commands** from the Vagrantfile
and **paste** them **into** your **terminal**.
> See: http://stackoverflow.com/questions/6476945/how-do-i-run-redis-on-windows
<br />

Expand Down
46 changes: 0 additions & 46 deletions Vagrantfile

This file was deleted.

10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "learn-redis",
"version": "2.1.0",
"version": "2.6.2",
"description": "A quick introduction to using Redis to store/retrieve data for your node.js app!",
"main": "server.js",
"repository": {
Expand All @@ -23,13 +23,13 @@
},
"homepage": "https://github.com/nelsonic/learn-redis",
"dependencies": {
"redis": "^2.4.2",
"redis-connection": "^4.0.1"
"redis": "^2.6.2",
"redis-connection": "^5.0.0"
},
"devDependencies": {
"istanbul": "^0.4.1",
"istanbul": "^0.4.4",
"tap-spec": "^4.1.1",
"tape": "^4.2.2"
"tape": "^4.6.0"
},
"scripts": {
"view-cov": "open .",
Expand Down

0 comments on commit bc886ce

Please sign in to comment.