Skip to content
/ hdxir Public

Elixir Phoenix app - simple caching wrapper around handsetdetection.com Python API

Notifications You must be signed in to change notification settings

ivanovv/hdxir

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hdxir

This is a small app that uses HandsetDetection Python api kit to detect the device specs and return them as JSON.

To start the app:

  • Install dependencies with mix deps.get
  • Install Python and these libraries tornado, dogpile.cache, PyYAML
  • Install python-apikit using git to checkout the code.
  • Install the device database hd.installArchive('hd.zip')
  • Configure HandsetDetection by editing hd_config.yml (you will need a registered account)
    • rename hd_config.yml.sample to hd_config.yml, keep it in the root of the app
    • don't use caching - the app has cache of its own
    • set use_local: True
  • Start Phoenix endpoint with mix phoenix.server

Now you can visit localhost:4000/?ua=iPhone from your browser.

Ready to run in production? Please check our deployment guides.

About

Elixir Phoenix app - simple caching wrapper around handsetdetection.com Python API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published