Arpith Siromoney 💬

Setting up an EC2 server with Redis and Node.js

The API for ( is an Express app running on EC2. Here’s how I set it up.

Launch your instance

  1. Click “Launch Instance”

  2. Choose “Amazon Linux AMI”

  3. Hit “Review and Launch”

Don’t forget to download your key pair!

Install Node.js and Redis

SSH into your instance, and run sudo yum update. Then install screen and run screen -DRR. Now you can proceed to install node:

$ wget [](
$ tar -C /usr/local --strip-components 1 -xJf node-v6.2.2-linux-x64.tar.xz

And Redis:

$ wget
$ tar xzf redis-3.2.1.tar.gz
$ cd redis-3.2.1 && make

Run your app

In my case this involves grabbing the dump.rdb file for Redis from S3, cloning the app’s github repository ( and running npm install & npm start.

Starting redis:

$ cd ~/redis-3.2.1
$ curl [](
$ src/redis-server

And installing and starting the app:

$ git clone [](
$ cd api
$ npm install && npm start

That’s it!