Giter Club home page Giter Club logo

forvo-light's Introduction

forvo-light

A lightweight web/android client to forvo.com.

A precompiled apk: http://gromnitsky.users.sourceforge.net/android/apk/
A live example (see Usage section below): http://gromnitsky.users.sourceforge.net/js/forvo-light/

Requirements

  • Node 6.x
  • npm i -g browserify babel babel-preset-es2015
  • GNU Make

Compilation

An out of tree build:

$ git clone ...
$ mkdir _out && cd _out
$ make -f ../forvo-light/main.mk

Then copy src/ dir where your webserver expects static files.

Android

Because I have a silly requirement of using the app on ancient devices w/ Android 2.3, you can build the app only if you

  • point ANDROID_HOME env var to the Android SDK Tools not newer than 25.2.5; using that version of SDK Tools, install SDK Platform 21.
  • npm i -g [email protected]
  • use a Node version manager, like nodever, for old versions of Cordova don't work w/ modern versions of Node;
  • edit ../forvo-light/main.mk to make sure that Cordova is being run under Node 4.8.

After this preliminaries, type:

make -f ../forvo-light/main.mk cordova

It'll take a while, for Cordova will download a bunch of staff in ~/.cordova at its 1st run. The resulting apks should be in cordova/platforms/android/ant-build/.

Usage

You'll need to obtain an API key from Forvo. After the 1st run of the app, click on the 'gear' icon & enter the api key. The app will remember it in the localStorage.

Implementation notes

No web frameworks were used in the making of this app. You won't believe this, but it's still possible in 2017 to write simple programs w/o React or Angular.

Android 2.3.4 bugs

(Not that anybody cares)

  • no HTTPS support for Audio()
  • history.replaceState() doesn't modify location.hash
  • error event in Audio() doesn't get fired in cases of 404, invalid format, etc.

License

MIT.

The icon: https://openclipart.org/detail/227474/pirate-parrot

forvo-light's People

Contributors

gromnitsky avatar

Watchers

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