tikapeosa2's Issues
create ingredient handler
dbHandler findItem(table, id)
return specified item from table "x" with id "y"
add depencies
- spark
- jdbc
- thymeleaf
create function that calculates the mass of the sun
database get food ingredients
Add addRecipeLine(s) and clearRecipeLines methods to Food
Create class RecipeLine
Contains information from the FoodIngredient database table. Attributes for this include:
Ingredient ingredient;
String order;
String amount;
String text;
Usage note: Class Food will contain a list of RecipeLines. Each RecipeLine object contains the information regarding a given ingredient for a given food.
create item handler
new funktion add recipylain
addRecipeline
foodid, ingredientid, order, text, määrä
Create server functionality
Create Get and Post methods. These just go in Main.
Post methods will use our Handler classes. For now, you can just mark the methods as unfinished.
create DbHandler
Connection connection
constructor has connection
Add equals to Food and Ingredient
Add test data to db.db
create add functions to food and ingredients
Add Ingredients for food
List recipeLines
getters n setters
Note: Class Food will contain a list of RecipeLines. Each RecipeLine object contains the information regarding a given ingredient for a given food.
Finish html pages
Finish html pages so that they include forms, lists received from database (same way index does currently), etc.
create abstract item
int id
String name
getters, setters & constructor
Create database
db.db
FoodIngredient{
orderName varchar(255),
amount varchar(255),
recipe varchar(500),
(fk) ingredientId,
(fk) foodId,
}
Food{
(pk) id,
name varchar(255)
}
Ingredient{
(pk) id,
name varchar(255)
}
Neatify Food template
Fix bugs with DbHandler.findAllItems
Fixing issues with said method
create smoothie recipe pages, also links to the pages
Create HTML pages
According to draft, create:
index.html
smoothie.html
createsmoothie.html
ingredients.html
create food handler
Add Post-related functionality to dbHandler
Add functionality to DbHandler for adding data to the database.
Structure note: Main calls Post, Post calls ItemHandlers and finally it's up to dbHandler to actually add stuff to the database.
Fix remaining language & layout issues in templates
create Food and Ingredient
extends abstract item
DbHandler get all recipelines for a Food from database
fix itemhandlers dbhandler ötökkä
RecipeLine get ingredient
create main get
returns index.html
Add Post functionality to Main
Add the Post statements that take data from the web pages (and hand it off to Food/Ingredient handlers)
Add getters and setters to RecipeLine
create basic html pages
list of foods
links to add food and ingredients
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.