Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

mysignal-api

Package Overview
Dependencies
Maintainers
0
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mysignal-api

Firebase and Huawei Cloud Messaging API proxy

  • 0.2.5
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
0
Created
Source

Server

Install

npm install --global mysignal-api

env

.env file:

# server port
PORT=80
# basic auth params
AUTH_USER=user
AUTH_PASS=pass
# firebase service account path
FIREBASE_SERVICE_ACCOUNT_JSON="config/firebase-service-account.json"
# huawei config path
HUAWEI_CONFIG_JSON="config/huawei-config.json"

Usage

  • direct
    # 1. clone repo
    git clone https://github.com/mutagen-d/mysignal-api
    # 2. go to repo directory
    cd mysignal-api
    # 3. create `.env` file
    cp .env.example .env
    # 4. create config/ dir
    mkdir config
    # 5. create config files, see https://github.com/mutagen-d/mysignal for details
    echo "{}" > config/firebase-service-account.json
    echo "{}" > config/huawei-config.json
    # 6. install dependencies
    npm install
    # 7. run
    node src/main
    
  • docker
    # follow up to 5th step of direct running
    # 6. build image
    docker build -t mysignal-api .
    # 7. run container
    docker run -d -p 8011:80 mysignal-api
    
  • docker-compose
    # follow up to 5th step of direct running
    # 6. run
    docker-compose up -d
    

Swagger docs

open docs localhost:8011/docs. In authentication dialog enter user as user and pass as password

Keywords

FAQs

Package last updated on 06 Jul 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc