GroceriStar documentation

GroceriStar documentation

  • Summary
  • GitHub
  • Help

›Groceristar Website Methods list

Tests

  • Tests

Shop list information

  • Shop list information
  • Components structure
  • Templates, that we have in our previous esjs, jade version

Current DB schema

  • Current DB schema

SubProjects

  • SubProjects

Groceristar Website Methods list

  • Groceristar Website Methods list
  • Department Router
  • Favorite Router
  • Grocery Router
  • Purchased Router
  • Ingredients Router

  • Logged in User workspace
  • GS sitemap
  • GS Shoplist screens
  • Where we get template data
  • Style Guide
  • About Groceristar company

Ingredients Router

Create or find at db new ingredient new ingredient and attach it to grocery listby passing ingredient_id and grocery_id
Method moves ingredient from one department to another(can work only with custom ingredients)
Method that changes the ingredients -> name works only with custom ingredients
Method that delete array of ingredients
Remote method!Create a new custom ingredinet+ save it to dbpassed user_id, grocery_id, department_id and ingredient name
Method that will called only if we want to edit not a custom element(we cannot edit main ingredient from our imported database, because this will take affect to other users). So we basically grab grocery_id, department_id and create a new ingredient(custom ) and attach it to this grocery list and this department. But we also should remove id of previous element - that we changing. Also we can have an order of ingredients, so when we replace ingredient with order 6 - we should apply the same number to a new created ingredient.
Method that get list of ingredients from departmentby passing grocery_id, department_id
← PreviousNext →
GroceriStar documentation
Docs
GS Shoplist screensTestsMetods listShop list information
More
About Groceristar companyBlogGitHubStar
Copyright © 2018 GroceriStar company