Code Monkey home page Code Monkey logo

greggs.products's Introduction

Greggs.Products

Introduction

Hello and welcome to the Greggs Products repository, thanks for finding it!

The Solution

So at the moment the api is currently returning a random selection from a fixed set of Greggs products directly from the controller itself. We currently have a data access class and it's interface but it's not plugged in (please ignore the class itself, we're pretending it hits a database), we're also going to pretend that the data access functionality is fully tested so we don't need to worry about testing those lines of functionality.

We're mainly looking for the way you work, your code structure and how you would approach tackling the following scenarios.

User Stories

Our product owners have asked us to implement the following stories, we'd like you to have a go at implementing them. You can use whatever patterns you're used to using or even better whatever patterns you would like to use to achieve the goal. Anyhow, back to the user stories:

User Story 1

As a Greggs Fanatic
I want to be able to get the latest menu of products rather than the random static products it returns now
So that I get the most recently available products.

Acceptance Criteria
Given a previously implemented data access layer
When I hit a specified endpoint to get a list of products
Then a list or products is returned that uses the data access implementation rather than the static list it current utilises

User Story 2

As a Greggs Entrepreneur
I want to get the price of the products returned to me in Euros
So that I can set up a shop in Europe as part of our expansion

Acceptance Criteria
Given an exchange rate of 1GBP to 1.11EUR
When I hit a specified endpoint to get a list of products
Then I will get the products and their price(s) returned

greggs.products's People

Contributors

lloydpowell88 avatar greggslloyd avatar hokagedami avatar rmorrin avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.