Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

pin yin cloud in the mojo

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 lib
Octocat-spinner-32 public
Octocat-spinner-32 script
Octocat-spinner-32 t
Octocat-spinner-32 templates
Octocat-spinner-32 Makefile.PL
Octocat-spinner-32 Perloku
Octocat-spinner-32 Readme
Readme
Hosted on heroku, pass text like this to see a response:

    http://pin-yin-cloud.herokuapp.com/lookup/?unicode=%E5%A5%B3%E5%AD%90


== Installation & Setup

sudo -s 'cpan App::cpanminus'
sudo -s 'cpanm Lingua::ZH::CCDICT'

#--
#installing for mojo for web  development as a system tool:

sudo -s 'curl -L cpanmin.us |perl - Mojolicious'
# taken from https://github.com/kraih/mojo/wiki/Installation

# install heroku deploy tools for mojo
sudo -s 'curl -L tempi.re/bundles/mojo-deploy-heroku | sh'

We use Perloku to run it on heroku.  To run the server locally:

chmod +x Perloku
PORT=3000 ./Perloku


== How the app was created

# create a new mojo app
#
# note : lite_app didn't work with mojo-deploy-heroku when
# I tried - I think it expects the lite app to have a package declared
#
mojo generate app PinYinCloud
cd pin_yin_cloud

# create a new heroku app named pin-yin-cloud or deploy to an existing app named 'pin-yin-cloud'
./script/pin_yin_cloud deploy heroku --appname pin-yin-cloud

# then this is live
http://pin-yin-cloud.herokuapp.com/

# I then modified Makefile.PL
# and added 'Lingua::ZH::CCDICT' => '0.05'
# to the PREREQ_PM 'map' (hash)
# and re-deployed
#
./script/pin_yin_cloud deploy heroku --appname pin-yin-cloud

Something went wrong with that request. Please try again.