Coder Social home page Coder Social logo

dilawar / hippo Goto Github PK

View Code? Open in Web Editor NEW
4.0 3.0 2.0 136.31 MB

Academic event schedular, venue manager, and much more.

Home Page: https://ncbs.res.in/hippo

License: MIT License

PHP 93.09% HTML 1.80% CSS 0.50% JavaScript 0.04% Python 3.05% Shell 0.11% Makefile 0.02% Dockerfile 0.04% Lua 1.35%
ncbs schedular codeigniter3 cms php7 network-flow

hippo's Introduction

Codacy Badge

Playstore

NCBS Hippo: https://play.google.com/store/apps/details?id=com.dilawar.hippo NCBS Tracker: https://play.google.com/store/apps/details?id=com.dilawar.hipposhare

NCBS Hippo

Dependencies

  • Requires PHP >= 7.x
  • php7, php7-imap, php7-ldap, php7-imagick
  • php-gd, php-mbstring, php-zip
  • php-oauth
  • sudo -E pecl install mailparse
  • mysql
  • python-pypandoc
  • sudo pip install mysql-connector-python-rf
  • pandoc >= 1.19.2.1
  • python-PIL (for background image processing).
  • python >= 3.6 (Photography club scripts require it)

Optional

To train the NN with AWS abstract.

  • torch-rnn

Apache behind proxy

To communicate to google-calendar, apache needs to know proxy server. Write following in httpd.conf file

SetEnv HTTP_PROXY 172.16.223.223:3128
SetEnv HTTPS_PROXY 172.16.223.223:3128

To make sure that server accepts API requests from android app.

Header set Access-Control-Allow-Origin "*"
Header set Access-Control-Allow-Headers "content-type"

How to setup google-calendar.

  1. Go to google-api console, and setup an API key. Download the key and store it in /etc/hippo/hippo-f1811b036a3f.json.

  2. Go to google calendar and add google-service account email in share calendar settings. Grant all permissions to new account.

  3. Following is the snippet to construct API.

$secFile = '/etc/hippo/hippo-f1811b036a3f.json';
putenv( 'GOOGLE_APPLICATION_CREDENTIALS=' . $secFile );
$this->client = new Google_Client( );
$this->client->useApplicationDefaultCredentials( );
// Mimic user (service account).
$this->client->setSubject( '[email protected]' );
$this->client->setScopes( 'https://www.googleapis.com/auth/calendar');

Notes

For rewrite rule to work: see this post https://stackoverflow.com/a/8260985/1805129

$ sudo a2enmod rewrite
$ sudo systemctl restart apache2

To enable ssl

$ sudo a2enmod ssl
$ sudo a2ensite default-ssl

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.