Giter Site home page Giter Site logo

riqra_assessment's Introduction

Riqra Assessment

API URL:

Project Documentation:

This project is part of an assessment from Riqra. Instructions down below.

Backend Developer

The assignment is designed to check your coding and problem-solving skills. We suggest you spend a maximum of 4-5 hours on it.

Things we require your code to have:

  • Domain model design (usage of DDD concepts: aggregates, value objects, domain services, etc)
  • Messaging (Commands and Events)
  • Code organization (modularity, dependencies between modules, etc)
  • Exception handling and logging
  • Writing and organizing tests
  • Task-based asynchronous programming

No UI needed.

Requirements

User catalog personalization.

Auth Module

  • When the email exists and the password is incorrect the API must respond "Oops! wrong password".
  • When the email exists and password is correct a new token is generated for further requests.
  • When the email does not exist a new user is automatically created (auto signup) and a new token is generated for further requests.
  • When a new user is created a welcome email is sent to its inbox.
  • When a new user is registered a supplier is randomly assigned to its account.

Catalog Module

  • The user can search for a product using a term
  • The user can list all available products depending on its supplier.

catalog shape example:

[
  {
    "name": "Iphone 11",
    "supplier": "Apple",
    "price": 10
  },
  {
    "name": "Iphone XS",
    "supplier": "Apple",
    "price": 9.5
  },
  {
    "name": "Iphone 11",
    "supplier": "Sprint",
    "price": 11
  },
  {
    "name": "Iphone 11",
    "supplier": "T-mobile",
    "price": 12
  },
  {
    "name": "Iphone 8",
    "supplier": "Apple",
    "price": 8
  },
  {
    "name": "Iphone 7",
    "supplier": "Apple",
    "price": 7
  }
]

Deliverables

  1. Use Rest or GraphQL (preferred) to build the API.
  2. Use the language you want, Typescript is preferred.
  3. Use the data store you prefer, we use MySQL as primary store in our backend.
  4. Use any cloud provider to deploy, make sure we can play with the API.
  5. Setup a CI server to run your tests, we must be able to check all tests passing.

riqra_assessment's People

Contributors

lucasleon2107 avatar

Watchers

 avatar  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.