Giter VIP home page Giter VIP logo

ackee-backend-task-solution's People

Contributors

beranm14 avatar rvfch avatar sandratatarevicova avatar smolijar avatar smoliji avatar stefanprokopdev avatar tomashejatko avatar

Watchers

 avatar

ackee-backend-task-solution's Issues

Problem Answering

  • Create API endpoint to submit an answer to a problem.
  • Implement logic to validate the answer (for both riddle and math types).

Testing

  • Implement unit tests using Jest for problemsService and expressionEvaluator
  • Create Postman workspace for debugging API

Authentication

Authenticate users using Basic access authentication.

  • No need to verify against any database - assume password is always correct.
  • Use username from BA credentials to identify the User.

Swagger

  • Add swagger for /api/{version} route

Problems

  • Problem
    • ID (Integer, but in real-world app I will use UUID)
    • Type (Enum = riddle | math)
    • Problem (String)
    • Answer (String)
    • Author (String) - author username
    • createdAt (timestamp)
    • updatedAt (timestamp)
  • Create API endpoint to list all problems.
  • Create API endpoint to read a specific problem by its ID.
  • Create API endpoint to create a new problem.
  • Create API endpoint to update a problem.
  • Create API endpoint to delete a problem.
  • Middleware for checking problem ownership before update/delete.
  • Input validation for problem creation and updates.
  • Implement expression evaluator
  • For each riddle answer will be "Test answer" (from static config)

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.