summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2019-12-07import { Component } from '@angular/core';chrisundercofferJacob
@Component({ selector: 'my-app', templateUrl: './app.component.html', styleUrls: [ './app.component.css' ] }) export class AppComponent { name = 'Angular'; addPage() { //Code here to move to add page } submitSearch() { //Code here to submit search } shoppingCart() { //Code here to move to shopping cart } } Updated main page to include just the top navigation
2019-12-07Updated recipe card component with new code. Essentially makes recipeJacob
card component the new main page. Left main page component in so that the original code is there, as well as the general outline for the other pages. Recipes still need to be loaded in from the backend, as they are currently pre-loaded. Also needs to be connected so the add, shopping cart, edit, and delete commands perform the correct tasks.
2019-12-07Merge commit 'cafe1b4fd3cc02554f44ffbaa8467d867a6838cb' into chrisundercofferTucker Evans
2019-12-07Added new recipe card and main page components. Added new files in eachJacob
of these components for html, css, ts, and spec.ts. HTML and CSS files were updated with code from stackblitz. Apparently this thing also thinks I changed the app.module.ts file, but I do not think I did.
2019-12-02Merge pull request #11 from tuckerevans/api_json=recipe_objectschencej
Api json and recipe object
2019-12-02Merge branch 'master' into api_json=recipe_objectTucker Evans
2019-12-02Fix remove Num from Step structTucker Evans
The index of the array can be used instead.
2019-12-02Merge pull request #10 from tuckerevans/elimTucker Evans
Elim
2019-12-02added app routing and cook page front endunknown
2019-12-02Merge pull request #9 from tuckerevans/backend-improvementschencej
Backend improvement (Refactoring)
2019-12-02Add variables from backendTucker Evans
2019-12-02Fix Steps as array in recipeTucker Evans
2019-12-02Fix Ingredients as array in recipeTucker Evans
2019-12-02Fix changes json encoding to match frontendTucker Evans
2019-11-29Fix Content-Type headerTucker Evans
Content-Type header was not included in response because WriteHeader() was called before setting Content-Type.
2019-11-29Merge branch 'backend-improvement' into api_json=recipe_objectTucker Evans
2019-11-29Fix duplicated response codeTucker Evans
Replace response setup/send code w/ calls to sendResponse()
2019-11-28Add sendResponse functionTucker Evans
sendResponse function implements creating and sending a APIRespones so that this code will not be rewritten for every response situation i.e. the different http methods.
2019-11-28Fix error handling on database connectTucker Evans
Now panics when can't connect to database and splits handling of errors from Open() and Ping() as separate issues.
2019-11-28Fix default case for http method checkTucker Evans
Moves default case (Method Not Allowed) into else clause so it is not necessary to return from the previous if's --- only for checking http method, error checking if statements can/should be returning where needed.
2019-11-27Add CORS headers to backend responsesbackend-v2.0Tucker Evans
Access-Control-Allow-Origin:* header added to API responses to allow angular to access API. Note: This allows all domains to access this API through browser javascript See <https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS> for a description of CORS
2019-11-27Add consntructor for APIResponseTucker Evans
2019-11-25Added data models.unknown
2019-11-22Add readme for backendTucker Evans
2019-11-14Fix simplify APIResponse struct using interface{}Tucker Evans
Combines APIResponseItem and APIResponseList into one struct. Hopefully this allows for the combination of some response code (a function that sends a APIResponse that can be used by each http method)
2019-11-12Add error responses for generic http methodsbackend-v1.0Tucker Evans
Also adds error for POST to individual resource
2019-11-12Add update functionality to APITucker Evans
2019-11-12Add transactions to Insert sql statementTucker Evans
Transactions allow us to rollback inserts ensuring that the database is in sync with our application.
2019-11-12Add id to ingredients so we can delete unused on updateTucker Evans
When updating ingredients if some # are remove we need to remove the same number from the database and update the rest, without an id column we don't know which ones to delete.
2019-11-12Fix change QueryRow to Exec for ingredient/step insertsTucker Evans
Changed database schema so ingredients & steps does not have an id, and therefore can't return it so instead we just exec the insert statement without returning anything. We do have to check that there were affected rows in order to accurately update the recipe object.
2019-11-10Add TodosTucker Evans
2019-11-10Add delete functionality for recipesTucker Evans
2019-11-10Add create recipe functionalityTucker Evans
2019-11-10Fix RecipeFromId expects only one row from databaseTucker Evans
Now uses sql.QueryRow rather than sql.Query so it doesnt have to check row.Next(), just have to check that row was returned (on scan call)
2019-11-10Add correct errors for an nonexistent recipe idTucker Evans
2019-11-10Fix MakeRecipeFromIdTucker Evans
MakeRecipeFromId was creating a empty recipe because rows.Next() was not being checked.
2019-11-10Fix responses sent to clientTucker Evans
JSON is no longer output to stdout and actually sent to client
2019-11-10Add structure to JSON responsesTucker Evans
JSON responses contains a status(error) section and a data section Note: JSON is still not sent to client
2019-11-10Add basic functionality to get list of recipe idsTucker Evans
Note: Still only prints to stdout, does not respond to client
2019-11-09Add basic access recipe functionalityTucker Evans
Note: Only prints recipe to server stdout does not return to client
2019-11-09Add make Recipe w/ id & database connectionTucker Evans
2019-11-09Add Recipe Type (w/ subtypes Ingredients & Steps)Tucker Evans
2019-11-09Fix database nameTucker Evans
2019-11-09Add database connectionTucker Evans
2019-11-08Add basic http routingTucker Evans
2019-09-14Initial commitschencej