GithubHelp home page GithubHelp logo

dagens-job-test's Introduction

Dagens Job Test

Hi applicant!

This repo contains the starter code for Dagens job test, as well as the task description. Please see README.md in server/ and client/ folders on how to install dependencies and start the server and client. The intention with this test is to have a look at how you solve a pretty straight forward problem, and then discuss it afterwards.

  • The server has an in-memory "database"-array with 1000 products. This is your database, you are not supposed to set up any database service like MongoDB or write to file or persist data in any way. Simply perform all operations on the in-memory "database"-array.

  • We're using the three categories <meat, greens, fish> in the pre-populated database, but feel free to let the user add more categories if you like - no right or wrong.

  • Styling/CSS is not important.

  • Adding too much abstraction, handling every possible error and adding validation for every input and endpoint won't give you any extra points.

Tasks

  1. Users should be able to create products from a form page. The products should be appended to the database (see server/db.js).

  2. Create one endpoint to get products. It should be possible to filter by category, maximum and minimum price. The endpoint should be paged with a page size of 24 products per page. No need to write frontend code.

  3. Create one endpoint that takes a product id parameter and returns the N products with nearest price in the same category. You can choose N yourself. No need to write frontend code.

Delivery

Clone the repo, solve the tasks and push your code to a public GitHub repo, Bitbucket repo, or similar. Send a link to the solution to Dagens.

dagens-job-test's People

Contributors

stianlp avatar

Watchers

Ida Naderian 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.