Giter VIP home page Giter VIP logo

food-app's Introduction

Food App

To run this project, make sure you have docker installed.

Setup :

  • docker-compose build
  • docker-compose run web rake db:create && rake db:migrate
  • docker-compose up

This should setup the environement, first time building can take some time.

The project :

Navigate to localhost:3000 in your browser, which should redirect you to the mealplanner view, nothing should be there, that is because the DB has just been created and is empty. You can then hit the update button in top left corner to generate the DB, which should display the meals.

You can navigate to other view to update or browse the DB (two tables, food and types).

The update button only works if you are in the mealplanner view.

The design is mainly inspired from the company who requested this test, and is VERY poor at the moment.

The mealplanner view finds all the meal using a methods that allows :

  • Load on scroll
  • Efficient research (best case cost in o(n) if n is the number of dishes : no meal is under 500 cals, and worst case cost in o(n^3 / 9) if all meal combinaison is under 500 cals).

Stack : angularjs + bower / ruby on rails, works with docker

The application uses angular router and rails yield router, which causes some big routing problems, some header links sometimes don't work and sometimes work.

Screens :

  • The mealplanner view : Screen 1

  • The Food database browser/editor Screen 2

  • The Type Database browser/editor Screen 3

food-app's People

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.