Skip to content

[DEPRECATED] Templates for quick web development, with perl + Mojolicious.

Notifications You must be signed in to change notification settings

mugifly/mojo_template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mojo_template Build Status

Templates for quickly web development, with perl + Mojolicious.

This project has just launched development (now).

This project is not official.


  • perl 5.10 (or later)

  • Mojolicious 3.70 (or later)

    • Mojolicious::Plugin::I18N
  • MongoDB

  • Data::Model + Data::Model::Driver::MongoDB

  • Twitter Bootstrap

  • etc...


Notice

If you have never used Mojolicious, I recommend you to begin application development with Mojolicious::Lite, and refer to official tutorials.

Because this template is not official and can't guarantee quality.

Available templates

  • login_site

    The website that can login using OAuth2 (Google Account).

Usage

Required

  • perl 5.10 (or later)

  • mongodb - It must be running on default settings (localhost:27017).

Usage - start development

Please execute the following commands with a console:

$ git clone git://github.com/mugifly/mojo_template.git
$ cd mojo_template/login_site/
$ cpan .
$ morbo script/example 

Then, let's access with browser: http://localhost:3000/

So, you will be able to access the web application ("login_site" template).

The "morbo" command is launching the "Mojo::Server::Morbo" daemon, with Application (script/example). ("Mojo::Server::Morbo" is a daemon for development. It is bundled with the Mojolicious framework.)

Enjoy the web development! with perl + Mojolicious :) please see to: http://mojolicio.us/perldoc (Japanse translation)

IN ADDITION: You must configure when you use to OAuth login on template application. (please see "Configure" section in the bottom.)

How to change the app name (example: "HogeHoge")

You can use the bundled script (rename_batch.pl).

Please execute the following commands with a console:

$ chmod u+x rename_batch.pl
$ ./rename_batch.pl
Please enter your new app name ...: HogeHoge
Will this do...? [y/n]: y
...
Complete. let's enjoy!

Configure

*"login_site" template:

login_site/config/config.conf

You must set the Google OAuth key/secret and other values to it.

Files

see wiki page: https://github.com/mugifly/mojo_template/wiki/Files

Libraries and materials

Many thanks!!

Mojolicious

https://github.com/kraih/mojo

Mojolicious::Plugin::I18N

https://github.com/sharifulin/mojolicious-plugin-i18n

Data::Model

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

Data::Model::Driver::MongoDB

https://github.com/ytnobody/Data-Model-Driver-MongoDB/

(C) ytnobody <ytnobody@gmail.com>
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

Net::OAuth2

https://github.com/keeth/Net-OAuth2

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 - v1.8.3

http://jquery.com/

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.

Authors and license

Masanori Ohgita (http://ohgita.info/).

This template is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

Thanks, Perl Mongers & CPAN authors.

About

[DEPRECATED] Templates for quick web development, with perl + Mojolicious.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages