GithubHelp home page GithubHelp logo

brionetworks / jasminwebpanel Goto Github PK

View Code? Open in Web Editor NEW

This project forked from amelyec/jasminwebpanel

0.0 1.0 0.0 2.49 MB

Jasmin Sms Web Interface

Home Page: http://www.jasminsms.com

Dockerfile 0.03% Makefile 0.03% Python 5.47% Shell 0.02% CSS 11.96% JavaScript 79.75% HTML 2.76%

jasminwebpanel's Introduction

Jasmin Web Panel

Jasmin SMS Web Interface and REST API for Jasmin SMS Gateway

Pre-requirements

You must install Jasmin SMS Gateway via official document

Installation

Download and Extract folder We recommend installing in a virtualenv

Install dependencies:

$ pip install -r requirements.pip

cd to JasminWebPanel and run:

$ ./manage.py migrate 
$ ./manage.py createsuperuser 
$ ./manage.py collectstatic

The last is only needed if you are running the production server (see below) rather than the Django dev server. It should be run again on any upgrade that changes static files. If in doubt, run it. You can also override the default settings for the telnet connection in local_settings.py. These settings with their defaults are:

TELNET_HOST = '127.0.0.1'
TELNET_PORT = 8990
TELNET_USERNAME = 'jcliadmin'
TELNET_PW = 'jclipwd'

Running

To run for testing and development:

$ ./manage.py runserver

This is slower, requires DEBUG=True, and is much less secure

Deployment

To run on production:

$ sudo apt-get install apache2 libapache2-mod-wsgi
$ cp 000-default.conf /etc/apache2/sites-available/000-default.conf
$ sudo a2enmod wsgi
$ a2ensite 000-default.conf
$ service apache2 restart

This requires that you run the collectstatic command (see above) and you should have DEBUG=False.

Docker usage

Environment variables

DB_ENGINE='postgres' (default: sqlite)
DB_NAME= (default: jasmin-smpp)
DB_HOST= (No Default)
DB_USER= (No Default)
DB_PASSWORD= (No Default)

JASMIN_HOST= (default: jasmin)
JASMIN_PORT= (default: 8990
JASMIN_USERNAME= (default: jcliadmin)
JASMIN_PASSWORD= (default: jclipwd)

Build and Run docker

docker build --rm -t local/jasminwebpanel:master ./

docker run -p 8000:8000 -e DB_ENGINE=postgres -e DB_HOST=postgres \
	 -e DB_USER=airflow -e DB_PASSWORD=airflow \
	 -e JASMIN_HOST=jasmin -e JASMIN_PORT=8990 -e JASMIN_USERNAME=jcliadmin -e JASMIN_PASSWORD=jclipwd \
	 -it local/jasminwebpanel:master

Contributes

Inspired by Jasmin API

jasminwebpanel's People

Contributors

101t avatar tarikogut avatar zspine avatar ryanprice-king avatar sagetarian avatar d0ctorrus avatar

Watchers

James Cloos 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.