Your Food, Your Way:
Catalogue: PierreBakery.Solution
- Deployed. a version control system used to implement development workflows; allows code deployment to application from git repositories.
- GitHub-Pages. the default publishing source for GitHub Pages site so site will publish automatically.
- Docs. See local changes in seconds; Docs (GitHub) Pages helps you share your published work; Create a /docs/index.md file on your repository's master branch.
Add functionality to update the type
- | Input: Cheese | Output: Cheese | Allow employees to enter types.
- | Input: Rolls: Treat Apple:Flavor | Output: Apple Rolls |
- | Input: Danish : Treat Apple:Flavor | Output: Cheese and Apple Danish |
You may use Windows, macOS, or Linux as your development operating system, though building and running apps may be limited. Tools used:
The full documentation for GH-Pages
The source for the Shoppe: PierreBakery documentation and website is hosted on a separate repo: quietevolver. The deployed version is at quietevolver.
PierreBakery
-
MySQL SetUp Using MySQL:
DROP DATABASE IF EXISTS
PierreBakery_registrar_database
; CREATE DATABASEPierreBakery_registrar_database
; USEPierreBakery_registrar_database
;CREATE TABLE
employees
(EmployeeId
int(11) NOT NULL AUTO_INCREMENT,Name
varchar(255) DEFAULT NULL, PRIMARY KEY (EmployeeId
) );CREATE TABLE
flavors
(FlavorId
int(11) NOT NULL AUTO_INCREMENT,Description
varchar(255) DEFAULT NULL, PRIMARY KEY (FlavorId
); );CREATE TABLE
treats
(TreatId
int(11) NOT NULL AUTO_INCREMENT,Name
varchar(255) DEFAULT NULL, PRIMARY KEY (TreatId
) );CREATE TABLE
TreatFlavor
(TreatFlavorId
int(11) NOT NULL AUTO_INCREMENT,TreatId
int(11) NOT NULL,FlavorId
int(11) NOT NULL, foreign key (FlavorId) REFERENCES Flavors(FlavorId),foreign key (TreatId) REFERENCES Treats(TreatId), primary key (TreatFlavorId) );
Regarding database Initialization:
- drop database
- delete contents of Migrations folder
- keep the following files:
- --[Timestamp]_Initial.cs
- --[Timestamp]_Initial.Designer.cs
- --MyContextModelSnapshot.cs
- The replacement code belongs in the last file:
using Microsoft.EntityFrameworkCore.Migrations;
namespace YourProjectFolderNameHere.Migrations { public partial class Initial : Migration { protected override void Up(MigrationBuilder migrationBuilder) { } protected override void Down(MigrationBuilder migrationBuilder) { } } }
- run in terminal: dotnet ef migrations add Initial After Initial is implemented, run the following to update any made changes:
- run in terminal: dotnet ef database update If an error occurs prior to GitCommit, the following command reverts the migration:
- dotnet ef migrations remove
The main purpose of this repository is to continue evolving. I am grateful to the community for feedback, contributing bugfixes, and improvements.
You can learn more about our vision for Pierre's Bakery in the PierreBakery.
Author | GitHub | |
---|---|---|
quietevolver | quietevolver | [email protected] |
MIT licensed, as found in the LICENSE file.