Git Product home page Git Product logo

ionic-cavamenu's Introduction

Cava Menu: a restaurant menu app

This ionic app displays the restaurany menu from here: Take Away Menu. It is only for teaching purposes.

Branches

The branches just show the project in various stages.

master: The master branch contains the original code created by ionic from the sidemenu template.

cleanup: The cleanup branch simply removes all of the files that ionic created that we don't need, and changes the others into the format that we want.

static: The static branch displays the menu, dynamically changing from sub-menu to sub-menu, but the dishes are hard-coded into the HTML.

icon: The icon branch adds an icon.

controller: The controller branch moves the data about the dishes to the controller, with the result that the template becomes much smaller.

nameicon: The nameicon branch updates the icon, and changes the app's display name.

Exercises

These are based on the nameicon branch.

  1. Change the menu to display the dishes as cards, rather than list items. Google "ionic cards".

  2. Move the dishes data to a file called services.js in the js directory. Include it in index.html and tell controllers.js to use it.

  3. Add images to the cards that are displayed. You can just find images for the dishes online.

  4. Add calorie counts to the dishes. You can just guess the calorie counts for each of the dishes.

  5. Create a mini-webserver to feed the data to your app in JSON format.

ionic-cavamenu's People

Contributors

ianmcloughlin avatar

Watchers

 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.