GithubHelp home page GithubHelp logo

oetiker / qx-mojo-app Goto Github PK

View Code? Open in Web Editor NEW
2.0 4.0 3.0 58 KB

Template for a Qooxdoo Web Application with Mojolicious Backend

Perl 22.77% Shell 1.09% JavaScript 20.64% Makefile 13.58% M4 19.79% HTML 4.69% Turing 1.98% Raku 15.44%
qooxdoo perl mojolicious-perl-framework

qx-mojo-app's Introduction

This has been superseeded by Mojolicious Automake!

Qooxdoo&Mojolicious App Generator

Build Status Coverage Status

A Mojolicious generator template for creating JavaScript web applications.

With qx-mojo-app you can create web apps with a server part written in Perl and a client part written in JavaScript using the Qooxdoo framework.

The app comes complete with an automake configure system, ready for distribution.

Quickstart

The following was tested on a fresh xubuntu 12.04 and 14.04 x64


# --------------------
# install dependencies
# --------------------
sudo apt-get install curl
sudo apt-get install automake

# -----------
# get qooxdoo
# -----------
cd
mkdir sdk
cd sdk
wget http://downloads.sourceforge.net/qooxdoo/qooxdoo-4.0.1-sdk.zip
unzip qooxdoo-4.0.1-sdk.zip

# -----------------------------------
# install mojo, set env, generate app
# -----------------------------------
PREFIX=$HOME/opt/mojolicious
export PERL_CPANM_HOME=$PREFIX
export PERL_CPANM_OPT="--local-lib $PREFIX"
export PERL5LIB=$PREFIX/lib/perl5
export PATH=$PREFIX/bin:$PATH
curl -L cpanmin.us \
  | perl - -n https://github.com/oetiker/qx-mojo-app/archive/master.tar.gz

# --------
# make app
# --------
mkdir -p ~/src
cd ~/src
mojo generate qx_mojo_app Demo
cd demo

# ..continue reading README in demo/ (see below)

Et voilà, you are looking at your first Qooxdoo/Mojolicious app. Have a look at the README in the demo directory for further instructions.

Enjoy

Tobi Oetiker [email protected]

qx-mojo-app's People

Contributors

maettu avatar oetiker avatar zaucker avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

qx-mojo-app's Issues

"slurp" is not exported by the Mojo::Util module

Mojolicious 7.31 removed a number of functions. This is causing test failures:

#   Failed test 'use Mojolicious::Command::generate::qx_mojo_app;'
#   at t/simple.t line 7.
#     Tried to use 'Mojolicious::Command::generate::qx_mojo_app'.
#     Error:  "slurp" is not exported by the Mojo::Util module
# Can't continue after import errors at /tmpfs/.cpan-build-cpansand/2017042606/Mojolicious-Command-generate-qx_mojo_app-0.2.2-0/t/../lib/Mojolicious/Command/generate/qx_mojo_app.pm line 4.
# BEGIN failed--compilation aborted at /tmpfs/.cpan-build-cpansand/2017042606/Mojolicious-Command-generate-qx_mojo_app-0.2.2-0/t/../lib/Mojolicious/Command/generate/qx_mojo_app.pm line 4.
# Compilation failed in require at t/simple.t line 7.
# BEGIN failed--compilation aborted at t/simple.t line 7.
# Looks like you failed 1 test of 1.
t/simple.t .. 
Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/1 subtests 

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.