tikapeosa2's People
tikapeosa2's Issues
Add getters and setters to RecipeLine
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.
fix itemhandlers dbhandler ötökkä
Fix bugs with DbHandler.findAllItems
Fixing issues with said method
Create HTML pages
According to draft, create:
index.html
smoothie.html
createsmoothie.html
ingredients.html
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.
create basic html pages
list of foods
links to add food and ingredients
dbHandler findItem(table, id)
return specified item from table "x" with id "y"
create DbHandler
Connection connection
constructor has connection
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.
create abstract item
int id
String name
getters, setters & constructor
Add Post functionality to Main
Add the Post statements that take data from the web pages (and hand it off to Food/Ingredient handlers)
Fix remaining language & layout issues in templates
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 smoothie recipe pages, also links to the pages
RecipeLine get ingredient
Finish html pages
Finish html pages so that they include forms, lists received from database (same way index does currently), etc.
create food handler
Add equals to Food and Ingredient
create ingredient handler
create add functions to food and ingredients
create main get
returns index.html
new funktion add recipylain
addRecipeline
foodid, ingredientid, order, text, määrä
database get food ingredients
DbHandler get all recipelines for a Food from database
add depencies
- spark
- jdbc
- thymeleaf
Neatify Food template
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)
}
create item handler
Add test data to db.db
create Food and Ingredient
extends abstract item
create function that calculates the mass of the sun
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.