Coder Social home page Coder Social logo

andrew21-mch / deku-router Goto Github PK

View Code? Open in Web Editor NEW

This project forked from smswithoutborders/smswithoutborders-publisher

0.0 0.0 0.0 145 KB

Here is the middle-ware that functions as a very limited functionality router for Deku. It communicates with third-party platforms and the cloud API for authenticating users

Python 94.95% Shell 5.05%

deku-router's Introduction

Dependencies

  • MySQL

Configuration and running

mysql

cp configs/example.config.mysql.ini configs/config.mysql.ini
cp configs/example.config.router.ini configs/config.router.ini
cp configs/example.isp.json configs/isp.json

# You can proceed to edit config files with the necessary credentials
# configs/isp.json -> the value for default is true is that isp would be the default number for the gateway
How to Run

create venv

python3 -m virtualenv .venv

activate venv

source .venv/bin/activate

install requirements

pip install -r requirements.txt

start the API

# start routing end points
python3 main.py

# start websocket end points - must be started if going to sync
python3 session_websockets.py

API ENDPOINTS

create new session for QR code

[POST]
/sync/sessions/
// body requirements
{
"auth_key":""
}

// returns
{
"status":200,
"url":""
}

deku-router's People

Contributors

sherlockwisdom avatar promisefru avatar

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.