Code Monkey home page Code Monkey logo

mojoexample's Introduction

Purpose

Notes

  • Both apps make use of the DBIx::Class schema.
  • The schema is in lib/Schema.pm, lib/Schema/*
  • The DBIx::Class schema connects to a provided sqlite3 database, test.db
  • The controller tests create a new test.db, populated using fixtures from t/fixtures/*
  • The schema tests use an in-memory sqlite3 database, populated using fixtures from t/fixtures/*
  • Test::Database is a utility for populating the sqlite3 databases with fixtures from t/fixtures/*

Usage

Live

Running on Heroku

Heroku is running Hypnotoad, the full featured UNIX optimized preforking non-blocking I/O HTTP 1.1 and WebSocket server built around the very well tested and reliable Mojo::Server::Daemon with IPv6, TLS, Bonjour, libev and hot deployment support that just works.

To easily deploy your own Mojolicious app to Heroku, check out Deploy Perl Mojolicious web apps to Heroku.

Locally

A minimum of Perl 5.10 is required. If your Perl is too old, Perlbrew is über easy to install!

If you must run on Perl 5.8, you can try a back-ported version of Mojolicious, but you're on your own :)

Install

git clone [email protected]:tempire/MojoExample.git
cd MojoExample

Install the Carton package manager. Carton will install all dependencies to the local/ sub-directory.

curl -L cpanmin.us | perl - Carton
carton install

Run

Full app

carton exec morbo script/mojo_full

Light app

carton exec morbo mojolite

Index

Copyright License

Copyright (C) 2008-2014, Glen Hinkle.

MojoExample is free software, you can redistribute it and/or modify it under the same terms as Perl5 (http://dev.perl.org/licenses/).

mojoexample's People

Contributors

tempire avatar jberger avatar atz avatar

Watchers

Aleš Lončar avatar James Cloos 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.