GithubHelp home page GithubHelp logo

cloud-chat-demo-js's People

Contributors

carmenlau avatar howawong avatar

Watchers

 avatar  avatar  avatar

cloud-chat-demo-js's Issues

Cloud Functions on local

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.p8

plugin:
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

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.