<commit_before>---
layout: post
title: Setting Up Surespot Server on Ubuntu 14.04
---

[Surespot](https://www.surespot.me/) is a relatively new Open Source instant messaging app thats fully
opensource. Therefore both the source codes for the client(Android and iOS) and the Server(Node.js) is
available.

In this post, I'll describe a step-by-step procedure for setting up the Surespot server on Ubuntu(I've
tried it with Ubuntu 14.04 Server Edition).


- Download the Surespot web-server code from [github](https://github.com/surespot/web-server).  
- Install [Cassandra](http://en.wikipedia.org/wiki/Apache_Cassandra) and [Redis](http://en.wikipedia.org/wiki/Redis) database servers.  
  -To install the DataStax's Cassandra 2.0 , follow the folowwing [instructions](https://www.datastax.com/documentation/cassandra/2.0/cassandra/install/installDeb_t.html)  
  -Install Redis server using apt-get:
{% highlight bash %}
sudo apt-get install redis-server
{% endhighlight %}

- Next you have to install Node.js, npm and CoffeeScript. The version that worked for me were 0.10.18, 1.3.8 and 1.6.3 respectively  
  -Install Node.js and npm by following the steps from [here](https://www.digitalocean.com/community/tutorials/how-to-install-node-js-on-an-ubuntu-14-04-server).  
  -Next use npm to install Node version manager and then using the node version manager, change to version 0.10.18. The steps are available [here](https://www.npmjs.com/package/n)  
  - Install Coffescript using npm  
{% highlight bash %}
npm install -g coffee-script@1.6.3
{% endhighlight %}

- On the root directory of the surespot server8(<PATH_TO_SERVER>/web-server) run  

{% highlight bash %}
npm install
{% endhighlight %}

This will install the dependencies for the project.  <commit_msg>edit post<commit_after>---
layout: post
title: Setting Up Surespot Server on Ubuntu 14.04
---

[Surespot](https://www.surespot.me/) is a relatively new Open Source instant messaging app thats fully
opensource. Therefore both the source codes for the client(Android and iOS) and the Server(Node.js) is
available.

In this post, I'll describe a step-by-step procedure for setting up the Surespot server on Ubuntu(I've
tried it with Ubuntu 14.04 Server Edition).


- Download the Surespot web-server code from [github](https://github.com/surespot/web-server).  
- Install [Cassandra](http://en.wikipedia.org/wiki/Apache_Cassandra) and [Redis](http://en.wikipedia.org/wiki/Redis) database servers.  
  -To install the DataStax's Cassandra 2.0 , follow the folowwing [instructions](https://www.datastax.com/documentation/cassandra/2.0/cassandra/install/installDeb_t.html)  
  -Install Redis server using apt-get:
{% highlight bash %}
sudo apt-get install redis-server
{% endhighlight %}

- Next you have to install Node.js, npm and CoffeeScript. The version that worked for me were 0.10.18, 1.3.8 and 1.6.3 respectively  
  -Install Node.js and npm by following the steps from [here](https://www.digitalocean.com/community/tutorials/how-to-install-node-js-on-an-ubuntu-14-04-server).  
  -Next use npm to install Node version manager and then using the node version manager, change to version 0.10.18. The steps are available [here](https://www.npmjs.com/package/n)  
  - Install Coffescript using npm  
{% highlight bash %}
npm install -g coffee-script@1.6.3
{% endhighlight %}

- On the root directory of the surespot server(&lt;PATH_TO_SERVER&lt;/web-server) run  

{% highlight bash %}
npm install
{% endhighlight %}

This will install the dependencies for the project.  
{'fraction_non_alphanumeric': 0.10907035885843458, 'fraction_numerical': 0.020062164453235377, 'mean_word_length': 4.086206896551724, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, 'https://': 10, 'lorem ipsum': 0, 'www.': 8, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2974037', 'n_tokens_mistral': 1196, 'n_tokens_neox': 1062, 'n_words': 371}