Giter Site home page Giter Site logo

mahara-mobile's Introduction

Mahara Mobile

A Mahara app for offline use.

The technology is JavaScript ES6, React, Redux, and Phonegap.

Smartphone Install

App packages will be available at a later date.

Dev Install

Download this repository and then run,

npm install

Next build the application,

npm run build

The ./www/ output directory will be a static website, intended to be packaged as a Phonegap project.

For basic debug you can serve this directory up from a static file webserver,

npm run devwebserver

Note: Phonegap plugins aren't available in the browser and so feature using these won't be available.

Android Build

To wrap as a Phonegap project, then run

npm run cordova-init

Then for Android first install dependencies (Ubuntu 16.04),

sudo add-apt-repository -y ppa:webupd8team/java
sudo add-apt-repository ppa:paolorotolo/android-studio
sudo apt-get update
sudo apt-get install oracle-java7-installer oracle-java7-set-default
apt-get install android-sdk android-emulator android-studio

Next run,

/opt/android-studio/bin/studio.sh

Click through the wizard, then,

npm run cordova-init-android1
npm run cordova-init-android2

Then see if it's all working by,

npm run cordova-run-android

Troubleshooting

Running cordova run android doesn't start the app on Android 4.x

It might be caused by http://stackoverflow.com/a/30240520

TODO

Server

The app currently scrapes details out of a Mahara Server instance which obviously isn't ideal.

So this is a list of Mobile APIs that we need,

  • Deprecate/discard tokens, just use sessions like regular users
  • Login
  • Login types available (local user, SSO)
  • SSO URL
  • Current login state
  • Mobile token error should have machine-readable error code
  • Set mobile token
  • Session duration/timeout
  • Get current username from session

mahara-mobile's People

Contributors

greatwalks avatar evonnecheung avatar holloway avatar

Stargazers

Rihards Mantejs avatar  avatar Suke Han avatar Anthony Chung avatar

Watchers

Aaron Wells avatar Anthony Chung avatar

mahara-mobile's Issues

NS_ERROR_MALFORMED_URI error in Firefox

We got this error when loading the code in Firefox for testing. The buttons wouldn't work and only a refresh of the page would take you to it. Just noting it down so we don't forget.

Add support for tags

E.g. get server list of tags and allow user to choose from that, or add new ones.

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.