BurgerAce

From ICO wiki
Revision as of 14:31, 20 March 2016 by Sohlo (talk | contribs) (→‎XML)
Jump to navigationJump to search

Kodutöö aines "Võrgurakendused II: hajussüsteemide ehitamine"

Meeskond

  • Silver Ohlo
  • Martin Luik
  • Ahto Elken
  • Arvo Bendi

Idee

Meie idee oli luua veebirakendus BurgerAce, mis võimaldaks klientidel ette tellida burgereid. Mõte on selles, et meie klientidel on võimalik burgereid ette tellida. Seetõttu kiire elutempoga kliendil pole vaja oodata toidu valmistamist. Klientidel on võimalik koostada etteantud komponentidest omale meelepärane või valida eelnevalt valmis tehtud burger. Meie teenus vahendab kiirtoidukohate ja nende klientide vahelist suhtlust. Burgeri ostmine pole varem nii kiire ja mugav olnud! :)

XML/XSD/XSLT

XML

<?xml version="1.0" encoding="utf-8" ?>
<Menu Currency="€">
  <Info>
    <Name>BurgerAce teenus</Name>
    <Description>
      <![CDATA[Eesti parim (ja ainukene) burgeri ostu teenuse vahendaja]]>
    </Description>
    <Contacts>
      <Contact Type="Aadress">Raja 4C, Tallinn</Contact>
      <Contact Type="E-mail">kontakt@burgerAce.ee</Contact>
      <Contact Type="Telefon">+372123456789</Contact>
    </Contacts>
  </Info>

  <FoodTypes>
    <Food>
      <Burgers>
        <Burger Name="Queen of Hearts">
          <PriceTable>
            <S>2.40</S>
            <M>3.40</M>
            <L>4.10</L>
          </PriceTable>
          <Description><![CDATA[Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.]]></Description>
          <Image>https://s-media-cache-ak0.pinimg.com/originals/e7/56/0c/e7560c91aeb45294dcb4adff7ebeb70c.gif</Image>
          <Ingredients Gluten="false" Allergens="Egg, soy, wheat">
            <Ingredient>Beef</Ingredient>
            <Ingredient>Ketchup</Ingredient>
            <Ingredient>Tomatoes</Ingredient>
            <Ingredient>Mayonnasise</Ingredient>
            <Ingredient>Lettuce</Ingredient>
            <Ingredient>Cheese</Ingredient>
          </Ingredients>
        </Burger>

        <Burger Name="BIG Joker">
          <PriceTable>
            <S>2.90</S>
            <M>3.60</M>
          </PriceTable>
          <Description><![CDATA[Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.]]></Description>
          <Image>http://www.zauberfranz.at/pics/kvbigjo.gif</Image>
          <Ingredients Gluten="true" Allergens="Egg, soy, wheat">
            <Ingredient>Beef</Ingredient>
            <Ingredient>Onions</Ingredient>
            <Ingredient>Hot sauce</Ingredient>
            <Ingredient>Tomatoes</Ingredient>
            <Ingredient>Mayonnasise</Ingredient>
            <Ingredient>Pickles</Ingredient>
            <Ingredient>Sesame seed bun</Ingredient>
            <Ingredient>Lettuce</Ingredient>
            <Ingredient>Cheese</Ingredient>
          </Ingredients>
        </Burger>
      </Burgers>
      <!-- Premade standard burgers that you can order without any modifications-->
    </Food>
    <Drinks S="220" M="330" L="500">

      <Type Name="Sodas">
        <Drink Name="Pepsi">
          <PriceTable>
            <S>1.60</S>
            <M>2.99</M>
            <L>3.45</L>
          </PriceTable>
        </Drink>

        <Drink Name="7up">
          <PriceTable>
            <S Size="300">2.30</S>
            <M>5</M>
            <L Size="1000">5.5</L>
          </PriceTable>
        </Drink>

        <Drink Name="Cola">
          <PriceTable>
            <S>2</S>
            <M>3</M>
            <L>4</L>
          </PriceTable>
        </Drink>
      </Type>

      <Type Name="Smoothies">
        <Drink Name="Strawberry-Sundae">
          <PriceTable>
            <S>2</S>
            <M>3</M>
            <L>4</L>
          </PriceTable>
        </Drink>
      </Type>

      <Type Name="Juices">
        <Drink Name="Orange juice">
          <PriceTable>
            <S>2</S>
            <M>3</M>
            <L>4</L>
          </PriceTable>
        </Drink>

      </Type>

    </Drinks>
    <!-- Drinks that can be ordered besides burgers-->
  </FoodTypes>

  <Ingredients>
    <Ingredient Type="Meat">Beef</Ingredient>
    <Ingredient Type="Vegetable">Onions</Ingredient>
    <Ingredient Type="Sauce">Hot sauce</Ingredient>
    <Ingredient Type="Vegetable">Tomatoes</Ingredient>
    <Ingredient Type="Sauce">Mayonnasise</Ingredient>
    <Ingredient Type="Vegetable">Pickles</Ingredient>
    <Ingredient Type="Wheat">Sesame seed bun</Ingredient>
    <Ingredient Type="Vegetable">Lettuce</Ingredient>
    <Ingredient Type="Sauce">Ketchup</Ingredient>
    <Ingredient Type="Dairy">Cheese</Ingredient>
  </Ingredients>
  <!-- Ingredients that can be used to make a custom burger-->

</Menu>

XSD


XSLT


Logi

  • 14.03 - Idee valikute debatt ja valitu väljatöötamine ning läbimõtlemine, XMLiga alustamine
  • 15.03 - XML, XSD ja XSLT valmimine.