[Old] Check-in to foursquare(4sq), automation-post it to mixi. Web-service based on perl.
Perl
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
public
resources
script
t
templates
.gitignore
.travis.yml
LICENSE.txt
LICENSE_Bootstrap.txt
LICENSE_Glyphicons.txt
LICENSE_jQuery.txt
README.md
cpanfile
cpanfile.snapshot

README.md

Fsq2mixi (4sq2mixi) Build Status

When you check-in to foursquare, automation-post to mixi.

https://s1.mpnets.net/services/fsq2mixi


  • perl 5.10 (or later)

  • Mojolicious 3.70 (or later)

  • Foursquare UserPush API

  • mixi Graph API


This application is still a test version.


Libraries and Materials

Many thanks :)

Mojolicious

https://github.com/kraih/mojo

Data::Model

http://github.com/yappo/p5-Data-Model/

Bootstrap (Twitter Bootstrap)

https://github.com/twitter/bootstrap

Copyright 2012 Twitter, Inc.

Apache License 2.0 https://github.com/twitter/bootstrap/blob/master/LICENSE

jQuery

https://github.com/jquery/jquery

Copyright 2012 jQuery Foundation and other contributors. http://jquery.com/

MIT License https://github.com/jquery/jquery/blob/master/MIT-LICENSE.txt

Glyphicons Free

http://glyphicons.com/

GLYPHICONS FREE are released under the Creative Commons Attribution 3.0 Unported (CC BY 3.0). The GLYPHICONS FREE can be used both commercially and for personal use, but you must always add a link to glyphicons.com in a prominent place (e.g. the footer of a website), include the CC-BY license and the reference to glyphicons.com on every page using GLYPHICONS.

etc...

How to start

1. Git clone; Then install dependencies by using the Carton.

$ cpanm Carton
$ git clone https://github.com/mugifly/Fsq2mixi.git
$ carton install

2. Make a configuration file

Please make a configuration file as below for the Config::Pit.

~/.pit/default.yaml

"fsq2mixi":
    "fsq_client_id": 'FOURSQUARE_CONSUMER_KEY'
    "fsq_client_secret": 'FOURSQUARE_CONSUMER_SECRET'
    "fsq_push_secret": 'FOURSQUARE_PUSH_SECRET'
    "mixi_consumer_key": 'MIXI_CONSUMER_KEY'
    "mixi_consumer_secret": 'MIXI_CONSUMER_SECRET'
    "secret": 'COOKIE_SECRET'
    "basepath": '/fsq2mixi'
    "dbpath": 'SQLITE_DATABASE_SAVEPATH'

3. Test a project

Please working on a directory of the Fsq2mixi (That means the cloned directory), when executing a following commands.

$ carton exec -- prove -lv t/*

4. Run on Mojo::Server::Hypnotoad

(Mojolicious 3.70)

Start:

Please working on a directory of the Fsq2mixi, when executing a following commands.

$ carton exec -- hypnotoad /PATHTO_fsq2mixi/script/fsq2mixi -f /PATHTO_fsq2mixi/script/fsq2mixi

Setting: (optionally)

/PATHTO_fsq2mixi/fsq2mixi.conf

{hypnotoad => {listen => ['http://*:80'], workers => 10}};

see detail: http://mojolicio.us/perldoc/Mojo/Server/Hypnotoad#SETTINGS

License and Author

Copyright (c) 2012 Masanori Ohgita (http://ohgita.info/). This program is free software distributed under the terms of the MIT license. See LICENSE.txt for details.