Code Monkey home page Code Monkey logo

spika's Introduction

Spika

Spika is messenger module for Web/iOS/Android with backend. You can include messenger feature to your app or service with minimum code.

For detail please visit our web site. http://spikaapp.com

Demo

Instruction for each device you can see here.

Backend

https://github.com/cloverstudio/Spika/tree/master/web/src/server

Web Client

https://github.com/cloverstudio/Spika/tree/master/web/src/client

Android

https://github.com/cloverstudio/Spika/tree/master/Android

iOS

https://github.com/cloverstudio/Spika/tree/master/iOS

License

MIT License

spika's People

Contributors

dimboiu avatar kenyasue avatar rishi420 avatar shelan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

spika's Issues

Web Client stucks at Loading Spika...

Thanks for this awesome app! Just installed the backend code and started node server. I tried to access the web app to test the connection. The node server shows:
screen shot 2016-07-30 at 11 37 27 am

which is normal I think?

The browser, however, stucks at Loading Spika stage:

screen shot 2016-07-30 at 11 35 57 am

Any clue what went wrong? I tried it on both Chrome and Safari.

I'm new to this so any help is appreciated.

Cant install this

I need help for install this :(

Error: Cannot find module 'hbsfy'
Error: Cannot find module 'ultron'

Pls help ...

What's happend? Network Error and Critical Error

I do the flowing step on Ubuntu 14.04
$ apt-get update
$ apt-get install git
$ git clone https://github.com/cloverstudio/Spika.git
$ apt-get install mongodb npm git nodejs imagemagick
$ sudo ln -s /usr/bin/nodejs /usr/bin/node
$ npm install gulp -g
$ cd Spika/web
$ npm install

edit src/client/init.js and src/server/init.js

$ gulp build-dist
$ node src/server/main.js
I do see the login page.
However, after I insert the info and press sign in,
a pop out window shows:
Network Error
Critical Error
What might be the problem and how do I fix it?

Unable to send text, files, and location

Hi,

I am using spika iOS sdk, there is I have one issue that is I am unable to send text, files and location. Some time I am able to sending and some times it is not sending. I have multiple rooms.

how to resolve this issue??
can any one help me..

Thanks,
Goutham.

i am confused in backend's installation !!

i have four problems of definations

  • when i start installing backend , sould i be a root as root@user or user with sudo ?

  • when i go Edit src/client/js/init.js
    there is a hint in manual says

  • host + urlPrefix + "v1"
    " what is the "v1 " exactly ?

  • when i install npm and npm global ( gulp) .. it gives me errors of missing parts .. is there is an additional apt-get installations ?

  • when i Generate public files and start server.
    there is a comment says # Generate files in public dir
    in making gulp build-dist
    so what and where i could find ( public dir ) .. is it the www/html root folder ??

it could seems as i am stupid to asking these .. but i ve tired of trying !!

RoomID crash

Hi !
I am working on an application and using your open source messenger. I have given a room id as "User's Chat Room" and the application just got crashed. Will you please guide me on this.

Push Notifications

So, I have been using this codebase for messenger requirement of a product. But, we don't get any push notifications when we send messages for Android and iOS . How to enable the push notifications from Spika Server code? Any help will be appreciated.

Android app crashes with FATAL EXCEPTION: IntentService[RegIntentService]

Callstack:

Process: com.clover_studio.democloverapp, PID: 7971
java.lang.IllegalAccessError: Method 'void android.support.v4.content.ContextCompat.<init>()' is inaccessible to class 'com.google.android.gms.iid.zzd' (declaration of 'com.google.android.gms.iid.zzd' appears in /data/app/com.clover_studio.democloverapp-1/split_lib_dependencies_apk.apk:classes19.dex)
at com.google.android.gms.iid.zzd.zzdL(Unknown Source)
at com.google.android.gms.iid.zzd.<init>(Unknown Source)
at com.google.android.gms.iid.zzd.<init>(Unknown Source)
at com.google.android.gms.iid.InstanceID.zza(Unknown Source)
at com.google.android.gms.iid.InstanceID.getInstance(Unknown Source)
at com.clover_studio.democloverapp.gcm.RegistrationIntentService.onHandleIntent(RegistrationIntentService.java:42)
at android.app.IntentService$ServiceHandler.handleMessage(IntentService.java:68)
                                                     at android.os.Handler.dispatchMessage(Handler.java:102)
                                                     at android.os.Looper.loop(Looper.java:154)
                                                     at android.os.HandlerThread.run(HandlerThread.java:61)

message Emit fails randomly from iOS.

My iOS application targeted for iOS 9 and above. During the chat sometimes message emit fails to reach server. When I debug flow reaches the emit function of SIOSocket but in server end emitted message is not received.

Could anybody help regarding this.

How to create a group?

1, how to create a group?
2, A side is not online, or did not enter the chat room, B party to send a message, A how to receive?

Smiles Error

Hello sir i could get Spika to work I have two issues ,I'm testing from web everything works well so far when i click on smiles it says error with a popup on right side next one is joined conversation show wrong time

Integration Back Button

On spika app site, some screenshots are showing the <-Back button but its not available on the latest code OR am I missing something? Can you please confirm, how can I add this function? TIA.

Spika web client error, dont work

Spika web client adress retunr
Cannot GET /Spika
i using apache to host client folder, apache return bank page..

help me to configure web client, i am not understand anything.

the server work correctly on Android App ans IOS, my problem actually is webclient

Thank

Login to a group but cannot view group users and messages

When i send a message it will not inserted on DB

server int.js as

 Config.host = "192.1168.1.122";
   Config.port = 1339;
   Config.urlPrefix = '/liveChatTesting/Spika';
   Config.socketNameSpace = '/Spika'

and client/js/init.js as

```

Config.apiBaseUrl = "192.1168.1.122:1339/liveChatTesting/Spika/v1";
Config.socketUrl = "192.1168.1.122:1339/liveChatTesting/Spika";

Failed to load resource: The request timed out - (SocketIO issue)

Hello:

I have the server running listening on port 8080.

Connecting mongoDB mongodb://localhost/simplemessenger
Server listening on port 8080!

When I connect to the client using my browser I see the login screen and when I attempt to create an account I get the "Network Error - Critical Error" message. When I look in the browser debugger here is the error message that I see:

Failed to load resource: The request timed out. - https://mysite.com:8080/socket.io/?EIO=3&transport=polling&t=LOOQWBO

So I went and reinstalled socketio with the following result:

[email protected] node_modules/socket.io
├── [email protected] ([email protected])
├── [email protected] ([email protected])
├── [email protected] ([email protected], [email protected], [email protected], [email protected])
├── [email protected] ([email protected])
├── [email protected] ([email protected], [email protected], [email protected], [email protected])
└── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected])

But I am still receiving the "Failed to load resource error message". Can someone let me know what I'm missing?

Thanks.

please i want to ask spika app authors a question

please i want to ask a question
i want to ask if we use the spikaapp backend how do we have admin right to block a user for violating terms and also to add sickers and also can we have unlimited users on our self hosted server

Error while uploading images to the server.

While uploading images using the webclient i am getting following error.

OS : Red Hat Enterprise Linux Server release 7.3 (Maipo)
node : 6.9.1 (LTS)

0|main | TypeError: "callback" argument must be a function
0|main | at makeCallback (fs.js:119:11)
0|main | at Object.fs.rename (fs.js:796:14)
0|main | at /home/ec2-user/Spika/web/src/server/WebAPI/FileUploadHandler.js:197:40
0|main | at /home/ec2-user/Spika/web/node_modules/mongoose/lib/model.js:3381:16
0|main | at /home/ec2-user/Spika/web/node_modules/mongoose/lib/document.js:1979:18
0|main | at _combinedTickCallback (internal/process/next_tick.js:67:7)
0|main | at process._tickDomainCallback (internal/process/next_tick.js:122:9)

Some thing went wrong

Hello
I am trying to use this project in my application and I set this in my mainActivity class like this:

User user = new User();
user.roomID = "RASADTECHNOLOGY"; // this is my originiztion name that i created
user.userID = "faridabbasi"; //-> this is a user that i created
user.name = "faridabbasi"; //-> this is the name of user that i ctreated
ChatActivity.startChatActivity(this, user);
This is my log cat:
capture

But when i run application i received a popup that says 'Some thing went wrong' . What is the problem ?
Thank you for your help.
@masroorelahi
@rijudewan
@tinyhostingltd

Error while running the server

I get the following error when I run the main js file. Can anyone help me on this?
node src/server/main.js

Error in Terminal

Connecting mongoDB mongodb://localhost/simplemessenger
events.js:141
      throw er; // Unhandled 'error' event
      ^

Error: listen EACCES 0.0.0.0:80
    at Object.exports._errnoException (util.js:870:11)
    at exports._exceptionWithHostPort (util.js:893:20)
    at Server._listen2 (net.js:1224:19)
    at listen (net.js:1273:10)
    at Server.listen (net.js:1369:5)
    at Object.<anonymous> (/home/ratish/Spika/web/src/server/main.js:18:8)
    at Module._compile (module.js:410:26)
    at Object.Module._extensions..js (module.js:417:10)
    at Module.load (module.js:344:32)
    at Function.Module._load (module.js:301:12)
    at Function.Module.runMain (module.js:442:10)
    at startup (node.js:136:18)
    at node.js:966:3

Spika With Reverse Proxy

Hello:

Has anyone used a reverse proxy with Spika? I'm running into an issue where it can't find socket.io. My reverse proxy is connection (https://mysite.com/chat) to the localhost:3005 web socket (using haproxy).

And socket.io can't be found. Does anyone know how to get around this?

Thanks!

Is this code only for Ubuntu 14.04

Hello,

I have tried the installation process with Ubuntu 15.10 but it is giving me some error while running below commands.

$ npm install
$ npm install gulp -g

Can you please suggest. Is this code works for Ubuntu 15.10 or 16th?

Thanks in advance.

Showa "Network Error" after trying to sign-in the web app

Trying the web example, after node main.js, it shows:

Failed to connect MongoDB!
{ [MongoError: server localhost:3008 sockets closed]
name: 'MongoError',
message: 'server localhost:3008 sockets closed' }

then I visit localhost:3008/spika, I do see the login page.
However, after I insert the info and press sign in,
a pop out window shows:
Network Error
Critical Error

What might be the problem and how do I fix it?

Database Setup

I am trying to run the server and I think it complains about the database. How to set-up the database properly?

screen shot 2017-01-23 at 10 58 20 pm

Spika iOS Client Socket Error

I am getting the following error:

reconnect error socket: {
column = 27057;
description = 404;
line = 1;
type = TransportError;
}

Any thing i have to configure in the iOS app ?

create a private chat

this is working very good for group chat does any one know how to set a private chat or one to one chat in Android ?

files not getting uploaded. always getting critical error while uploading files and after that node server crashes..

getting this error stack trace:
TypeError: callback must be a function
at makeCallback (evalmachine.:78:11)
at Object.fs.rename (evalmachine.:668:14)
at /root/myolo/myolo/Spika/web/src/server/WebAPI/FileUploadHandler.js:197:40
at model. (/root/myolo/myolo/Spika/web/node_modules/mongoose/lib/document.js:1913:20)
at next_ (/root/myolo/myolo/Spika/web/node_modules/hooks-fixed/hooks.js:89:34)
at fnWrapper (/root/myolo/myolo/Spika/web/node_modules/hooks-fixed/hooks.js:186:18)
at /root/myolo/myolo/Spika/web/node_modules/mongoose/lib/model.js:3361:16
at /root/myolo/myolo/Spika/web/node_modules/mongoose/lib/model.js:228:5
at /root/myolo/myolo/Spika/web/node_modules/mongoose/lib/model.js:135:7
at /root/myolo/myolo/Spika/web/node_modules/mongodb/lib/collection.js:504:5
at /root/myolo/myolo/Spika/web/node_modules/mongodb/lib/collection.js:666:5
at /root/myolo/myolo/Spika/web/src/server/WebAPI/FileUploadHandler.js:197:40
at model. (/root/myolo/myolo/Spika/web/node_modules/mongoose/lib/document.js:1913:20)
at next_ (/root/myolo/myolo/Spika/web/node_modules/hooks-fixed/hooks.js:89:34)
at fnWrapper (/root/myolo/myolo/Spika/web/node_modules/hooks-fixed/hooks.js:186:18)
at /root/myolo/myolo/Spika/web/node_modules/mongoose/lib/model.js:3361:16
at /root/myolo/myolo/Spika/web/node_modules/mongoose/lib/model.js:228:5
at /root/myolo/myolo/Spika/web/node_modules/mongoose/lib/model.js:135:7

Error while Starting server in stand alone mode

After running the below command
$ node src/server/main.js

I am getting the error:
Connecting mongoDB mongodb://localhost/simplemessenger
events.js:141
throw er; // Unhandled 'error' event
^

Cannot find module 'jsdoc/util/doop'

Hi
I've followed the instructions https://github.com/cloverstudio/Spika/tree/master/web/src/server and I'm getting the below error:

gulp build-dist
Wed, 21 Jun 2017 10:45:34 GMT uncaughtException: Cannot find module 'jsdoc/util/doop'
Error: Cannot find module 'jsdoc/util/doop'
	at Function.Module._resolveFilename (module.js:325:15)
	at Function.Module._load (module.js:276:25)
	at Module.require (module.js:353:17)
	at require (internal/module.js:12:17)
	at Object.<anonymous> (/opt/Spika/web/node_modules/gulp-jsdoc/node_modules/jsdoc/lib/jsdoc/borrow.js:9:12)
	at Module._compile (module.js:409:26)
	at Object.Module._extensions..js (module.js:416:10)
	at Module.load (module.js:343:32)
	at Function.Module._load (module.js:300:12)
	at Module.require (module.js:353:17)
	at require (internal/module.js:12:17)
$ lsb_release -r
Release:        14.04

$ node -v
v4.8.3

$ npm -v
2.14.22.15.11

$ /usr/bin/node -v
v4.8.3

$ /usr/bin/nodejs -v
v4.8.3

cat src/server/init.js

(function(global) {
    "use strict;"

    // Class ------------------------------------------------
    var Config = {};

    Config.host = "x.x.x.x";
    Config.port = 80;
    Config.urlPrefix = '/spika';
    Config.socketNameSpace = '/spika';

    Config.imageDownloadURL = "http://" + Config.host + "/:" + Config.port + Config.urlPrefix + "/media/images/";
    Config.noavatarImg = "http://" + Config.host + ":" + Config.port + Config.urlPrefix + "/img/noavatar.png";

    Config.chatDatabaseUrl = "mongodb://localhost/simplemessenger";
    Config.dbCollectionPrefix = "spika_";

    Config.uploadDir = 'public/uploads/';
    Config.sendAttendanceMessage = true;

    Config.stickerBaseURL = 'http://spika.chat';
    Config.stickerAPI = Config.stickerBaseURL + '/api/v2/stickers/56e005b1695213295419f5df';

    Config.apiBaseUrl = "http://localhost:8080/spika/v1";
    Config.socketUrl = "http://localhost:8080/spika";

    // Exports ----------------------------------------------
    module["exports"] = Config;

})((this || 0).self || global);

Can you please suggest?
Thanks

Demo Android App crashes invariantly

The exception from Logcat:

Caused by: java.lang.IllegalArgumentException: baseUrl must end in /: http://39.40.121.176:8888/spika/v1
at retrofit2.Retrofit$Builder.baseUrl(Retrofit.java:477)
at retrofit2.Retrofit$Builder.baseUrl(Retrofit.java:420)
at com.clover_studio.spikachatmodule.base.BaseActivity.onCreate(BaseActivity.java:94)
at com.clover_studio.spikachatmodule.ChatActivity.onCreate(ChatActivity.java:181)
at com.clover_studio.democloverapp.DemoChatActivity.onCreate(DemoChatActivity.java:32)
at android.app.Activity.performCreate(Activity.java:6289)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1118)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2446)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2576) 
at android.app.ActivityThread.access$1000(ActivityThread.java:155) 
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1421) 
at android.os.Handler.dispatchMessage(Handler.java:102) 
at android.os.Looper.loop(Looper.java:148) 
at android.app.ActivityThread.main(ActivityThread.java:5539) 
at java.lang.reflect.Method.invoke(Native Method)

This is because the config model for the SingletonLikeApp instance is not being updated as required. It contains a fixed faulty value (http://39.40.121.176:8888/spika/v1)

Licence

I would like to known if it is possible to use SPIKA in Commercial project ? Because I don't understand everything about the differences licences (what i can do with or not)

Thanks

Error Starting

Followed the instructions and then just get this when trying to start

root@chat:~/Spika/web# node src/server/main.js
Connecting mongoDB mongodb://localhost/simplemessenger

events.js:72
throw er; // Unhandled 'error' event
^
Error: listen EADDRINUSE
at errnoException (net.js:901:11)
at Server._listen2 (net.js:1039:14)
at listen (net.js:1061:10)
at Server.listen (net.js:1135:5)
at Object. (/root/Spika/web/src/server/main.js:18:8)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Function.Module.runMain (module.js:497:10)
at startup (node.js:119:16)
at node.js:902:3

"npm install" error on centos

Please help me
When I run "npm install " error like this:
======================================================================[root@centos7-137 web]# npm install
npm WARN deprecated [email protected]: This project is deprecated. Use gulp-jsdoc3 instead.
npm WARN deprecated [email protected]: wrench.js is deprecated! You should check out fs-extra (https://github.com/jprichardson/node-fs-extra) for any operations you were using wrench for. Thanks for all the usage over the years.

[email protected] postinstall /opt/Spika/web/node_modules/gulp-jsdoc/node_modules/jsdoc
node ./node/postinstall.js

Unable to create a symbolic link from /opt/Spika/web/node_modules/gulp-jsdoc/node_modules/jsdoc/lib/jsdoc to /opt/Spika/web/node_modules/gulp-jsdoc/node_modules/jsdoc/node_modules/jsdoc. Error: EACCES: permission denied, symlink '/opt/Spika/web/node_modules/gulp-jsdoc/node_modules/jsdoc/lib/jsdoc' -> '/opt/Spika/web/node_modules/gulp-jsdoc/node_modules/jsdoc/node_modules/jsdoc'

[email protected] /opt/Spika/web
└── (empty)

npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules/chokidar/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN [email protected] No repository field.
npm WARN [email protected] No license field.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] postinstall: node ./node/postinstall.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] postinstall script 'node ./node/postinstall.js'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the jsdoc package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node ./node/postinstall.js
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs jsdoc
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls jsdoc
npm ERR! There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2017-03-15T05_42_43_001Z-debug.log
[root@centos7-137 web]# uname -a
Linux centos7-137 3.10.0-229.el7.x86_64 #1 SMP Fri Mar 6 11:36:42 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux

======================================================================

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.