Code Monkey home page Code Monkey logo

web2py-cordova's Introduction

web2py Vue Scaffold App (compatible with Cordova)

This app provides an example of a scaffold app based on:

  • web2py (for serverside logic, database abstraction, and auth)
  • jquery.js
  • sugar.js (for date, throttling, debounce, etc)
  • vue.js (for single page responsive app)
  • whoosh (for full text search)
  • stupid.css (for style)

It is based on https://github.com/web2py/scaffold but all the code is in static/index.html and static/js/custom.js

To use without cordova, this is a normal web2py app. Just install and open it.

To use with cordova, simply edit static/js/custom.js and make BASE point to the URL of your server, than mount static/ as cordova/www/ and process it with Cordova. Example:

cordova create myapp com.example.hello MyApp
cordova platform add browser
cordova platform add android
cordova platform add ios

cd myapp
rm -r www
ln -s /path/to/web2py/applications/myapp/static/ www/
        
cordova build browser
cordova build android
cordova build ios

cordova run browser
cordova run android
cordova run ios

License

BSD

Notes

This is a work in progress and the plan is to make it easier to build responsive apps that work with web and Cordova out of the box, easy to develop and powered by the web2py backend.

web2py-cordova's People

Contributors

abastardi avatar mdipierro avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  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.