Giter VIP home page Giter VIP logo

myrecipes's Introduction

My Recipes Mobile

Ionic App; Recipe App with shopping lists and cooking tips etc

Overview

Compatible with My Recipes Web

Main Features

  • Manage recipes
    Add, Update, Remove, ...
  • Manage ingredients for recipes
    • Auto adding to all ingredient list
    • Select ingredients from list when adding a new recipe
  • Menu management
    ...

Techniques

Ionic Framework v3.9.2
AngularJS v5.2.11

1. UI Implementation

Implement UI pages based on Flexbox layout

Custom components

  • Checkbox <check-box>
    Checkboxes for showing validation status in Signup pages
  • Star rate <star-rate>
    Showing or selecting stars for rate

Accordian without animation

Implemented accordion with conditional style

  • Signup Allergies Page
  • Preference Setting Page
<div [class.collapsed]="condition">
.collapsed {
	max-height: 0 !important;
}

2. Function Implementation

  • Google Firebase for backend

Db Structure

|
+-- allergies
|  |
|  +-- {index}
|
+-- cuisines
|  |
|  +-- {index}
|
+-- dislikes
|  |
|  +-- {index}
|    
+-- userAllergies
|  |
|  +-- {userId}
|     |
|     +-- {allergyIndex}: true
|
+-- userDiets
|  |
|  +-- {userId}
|     |
|     +-- {cuisineIndex}: true
|
+-- userDislikes
|  |
|  +-- {userId}
|     |
|     +-- {dislikeIndex}: true
|
+-- userFavouriteCuisines
|  |
|  +-- {userId}
|     |
|     +-- {cuisineIndex}: true
|
+-- users
   |
   +-- {id}

3. Code tricks

Fit <ion-textarea> to <div>

  • Write Review Page
<div class="input-item">
  <ion-textarea
    name="content"
    placeholder="Write your review here"
    [style.height] = "initDone ? '100%' : 'auto'"
    [(ngModel)]="content"></ion-textarea>
</div>
ion-textarea {
  padding: 0 0 20px 0;

  textarea {
    width: 100%;
    height: 100%;
  }
}

4. Third-Party Libraries

4.1 Cordova plugins

4.2 Firebase JS SDK v5.7.0

Main backend & database for the app

Need to Improve

Lazy Loading of list and grids
  • Effective use of virtualScroll
Animation of accordian

The height of each item is not fixed and different

Complete the features

myrecipes's People

Contributors

highjump0615 avatar

Stargazers

 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.