Current location - Quotes Website - Collection of slogans - Spika, an open source IM chat framework based on nodes. JS,MongoDB
Spika, an open source IM chat framework based on nodes. JS,MongoDB
Discover a powerful open source chat framework Spika. It not only provides source code for IOS, Android and Web, but also provides back-end source code, all of which are open source. Spika is provided by Clover Studio, a mobile application company from Croatia, thanks to their team's open project from head to toe.

Compared with the traditional lamp (Linux, Apache, MySQL, PHP), Node.js+MongoDB is a relatively new backend combination. Google's own chat platform, Google Message Cloud (GMC), is based on Node. JS+MongoDB。

Before it's too late, start using it!

Install the server side

1. Environment configuration. Official website provided the configuration flow of Ubuntu version Ubuntu 14.04. See the figure below:

Since the server I used was Amazon Linux, I installed it with yum.

Git clone git://github.com/nodejs/node.git

Cd node

Git checkout version 4.4.7

. /configuration

manufacture

Sudo make installation

Cauline

vi /etc/sudoers

:/usr/local/bin `'

Install imagemagick

Install Spika

Install gulp

Sudo npm installing gulp -g

7. Write a configuration file

Set the values of Config.host and port to the host name and port of your own server, and change the value of Config.chatDatabaseUrl to the path of mongoDB. It is best to use ports above 1024. If mongoDB does not modify the security options, it is better to use 127.0.0. 1.

8. Run the project

At this point you can report an error.

Jsdoc was not found. Solution:

Then run it again.

Open the server

Node src/server/main.js

Log in with a browser at this time.

Host number: port number /spika

You can start chatting!

In addition to the web version, there are also Android and ios versions. Try again next time:)