Code Monkey home page Code Monkey logo

pushnotificationsserver's Introduction

GCM Flask Server

Integration of https://github.com/geeknam/python-gcm into flask

Features:

  • Everything that python-gcm has: Supports multicast message, Resend messages using exponential back-off, Proxy support, Easily handle errors
  • Admin panel with user managment
  • REST API for easy posting from your android app
  • Sending messages to all or only to specific categories

alt text

alt text

How to use it:

  • git clone https://github.com/AndreiD/PushNotificationsServer.git <project_name> or download the zip
  • pip install -r requirements.txt
  • edit the config.py with your settings!
  • in run.py edit the port of the app (Default: 1337)
  • python run.py -> http://server_ip:1337
  • play with it
  • modify the API KEY and admin user/password (TODO: move them to config)

The android client

Attention:

About security: at the moment the api is protected only by a secret key. Use ProGuard in your android app, SSL, other auth methods, etc etc

optional edit /app/templates/base.html

{% set bootstrap_version = '3.2.0' %} {% set jquery_version = '2.1.1' %} {% set modernizer_version = '2.8.2' %} {% set bootswatch_version = '3.2.0' %} {% set bootswatch_theme = 'slate' %}

In case a new version appears, and you want to use it. modify it. also you can chose a nice theme from http://bootswatch.com/

in /app/models.py an example with "expenses list" is added.

an example with PAGINATION

Extras:
  • a supervisord.conf [supervisor is used to monitor the web application and restart it, also starts the app in case you restart your server]
  • a simple nginx.conf

pushnotificationsserver's People

Contributors

andreid avatar

Watchers

James Cloos avatar Abu-Zayd Abdullah 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.