skygear-demo / cloud-chat-demo-js Goto Github PK
View Code? Open in Web Editor NEWCloud code demo for chat plugin customization
License: Other
Cloud code demo for chat plugin customization
License: Other
should show <Someone> sent you an image
or <Someone> sent you a voice message
<Someone> sent you a file
should be the last fallback
I will write the installation steps:
First, I run Skygear server with chat plugins from docker-comose.yml file and everything work fine (chat and skygear app)
Then I install cloud function on local from (https://github.com/skygear-demo/cloud-chat-demo-js)
and add cloud config to docker file
PLUGINS: JS1
JS1_TRANSPORT: HTTP
JS1_PATH: http://192.168.1.34:9000
Then I run Skygear server with (docker-compose up) and it works fine
Finally, I run (/node_modules/.bin/skygear-node index.js )
and I have this message :
[info] plugin: Listening 0.0.0.0 on port 9000…, {“process”:“node”}
But cloud function is not working (don’t push send notification)
There is any mistake on my installation steps?
Note This is my docker file :
version: ‘2’
services:
db:
image: mdillon/postgis:9.5
ports:
- “5432:5432”
volumes:- db_data:/var/lib/postgresql/data
app:
image: quay.io/skygeario/skygear-server:latest
ports:
- “3001:3000”
volumes:- app_data:/go/src/app/data
links:- db
command: skygear-server
environment:
DATABASE_URL: postgresql://postgres:@db/postgres?sslmode=disable
APP_NAME: testChat
API_KEY: _apiKey
MASTER_KEY: _masterkey
TOKEN_STORE: jwt
TOKEN_STORE_SECRET: jwt_secret
PLUGINS: CHAT , JS1
CHAT_TRANSPORT: zmq
CHAT_PATH: chat
CHAT_ARGS: tcp://0.0.0.0:5555
JS1_TRANSPORT: http
JS1_PATH: http://192.168.1.34:9000
ASSET_STORE: fs
ASSET_STORE_URL_PREFIX: http://localhost:3000/files
ASSET_STORE_SECRET: khaled_ald_gifted
APNS_ENABLE: “YES”
APNS_ENV: sandbox
APNS_TYPE: token
APNS_KEY_ID: xxxxxx
APNS_TEAM_ID: xxxxxxxxxx
APNS_TOKEN_KEY_PATH: /app/data/cert/auth.p8plugin:
build:
context: .
links:
- app
- db
volumes:- ./:/usr/src/app
command: py-skygear chat
environment:
DATABASE_URL: postgresql://postgres:@db:5432/postgres?sslmode=disable
PUBSUB_URL: ws://app:3000/pubsub
SKYGEAR_ADDRESS: tcp://app:5555
SKYGEAR_ENDPOINT: http://app:3000
APP_NAME: testChat
API_KEY: _apiKey
MASTER_KEY: _masterkey
TOKEN_STORE_SECRET: jwt_secret
ASSET_STORE_URL_PREFIX: http://localhost:3000/volumes:
db_data:
driver: local
app_data:
driver: local
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.