Git Product home page Git Product logo

Comments (4)

otomn avatar otomn commented on June 17, 2024

@umar-ahmed I think the purpose of us creating a mock is so that the frontend them doesn't even need any working API to work on anything. The mock is intended to be used at the frontend directly like so:

function getFormByID(id: string): Mode.SDCForm {
    return mock.buildFormComplete()
}

Maybe to guarantee the correct handling of the API, the same function with the exact signature will be created in a mock client on the backend side for testing purposes. At the end of the day, when the backend team got the API up and running and tested, the frontend team can simply copy real implementation (getFormByID) from the backend mock to the frontend

from proj-dateam.

umar-ahmed avatar umar-ahmed commented on June 17, 2024

That will work, but I (and the prof) foresee issues with integration if we too heavily rely on just having the mock there on the frontend and not calling an API endpoint. "Integrate often, and integrate early" is the slogan that was instilled in me and I think that applies here.

If I'm not mistaken, we already have some scaffolding set up for the HTTP handlers (I think @vermaarn set it up?), so like you said, this task is just a matter of returning the mock for that handler.

from proj-dateam.

otomn avatar otomn commented on June 17, 2024

Blocked by #51

from proj-dateam.

Timmarus avatar Timmarus commented on June 17, 2024

Completed by #67

from proj-dateam.

Related Issues (20)

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.