Giter Site home page Giter Site logo

usertech-recruiting-task's Introduction

U+Game

Hello there,

so you want to be developer in U+? We prepared a little challenge for you. No bullshit, just a real world scenario, you could face as dev here.

Description

We love to play our Playstation in office, one of the game here is GTA V. But we would like to buy older games from this series. And of course as cheap as possible. You will be Backend developer providing API endpoint for your colleague on frond-end checking if game is cheap enough to buy.

Your tech stack will be Nest.js which is wrapper around Node.js + Express taking advantage of Typescript. If you don't know it, check it out, its really easy to start, check https://docs.nestjs.com/.

Your task

You will work with API https://www.cheapshark.com/api/. Lucky for you somebody just started on this project, so continue, where he left. Fork this repo and:

  • Expand app logic to fetch the cheapest price ever for game (spoiler alert - you need to call https://www.cheapshark.com/api/documentation.html#deals).
  • Return just data in IGame interface to endpoint GET /games.
  • When endpoint GET /games is called, you have to save this event to database (of your choice). You will save just when endpoint was called. In the end you will have in table two columns id and called_at of type DATETIME.
  • Make endpoint GET /calls and return data from database you created. Return only calls made on Mondays.
  • Endpoint GET /calls has to be private, make it so, it's up to you what method will you choose.
  • Tests are up to you, if you will provide them, you will get in front of other candidates.

Scripts

Installation

$ npm install

Run as a server

$ npm start

Run tests

$ npm tests

DEV server

Checking files for changes and automatic restart the application:

$ npm run start:dev

usertech-recruiting-task's People

Contributors

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