GithubHelp home page GithubHelp logo

ziegler's Introduction

Exercise 1

Part 1

Please build an backend app which will be written in Nest.js and will use MongoDB.

Example data to use: https://raw.githubusercontent.com/raywenderlich/recipes/master/Recipes.json

API needs to be able to:

  • return a list of all possible unique ingredients (variations of a products can be treated as unique ones)
  • return a list of all possible unique ingredients types (baking/drinks etc)
  • return a list of all possible recipes (with support for pagination)
  • return all of the recipes that uses provided products
  • return all of the recipes that total cook time (sum of a timers) will not exceed provided value
  • return one recipe by provided id

Tips:

  • You can normalize data, add ids etc.
  • There should be a data migration that will sync the data from the JSON with the local DB only once (at initial app start)
  • Fork this repo and share it with us
  • If you have any questions, please contact [email protected]

Part 2

Please use React.js and selected UI Kit (we use Chakra internally so it is preferred one). The UI should contain two views:

  • List of all possible recipes, you can show only 3 recipes at the same time (use infinite scroll or pagination).
  • Every recipe should contain picture, name, ingredients, total cook time and source url.
  • There should be also the possibility to filter recipes by ingredients type (multi select), ingredients (multi select - it should contain only results corresponding to the previous selection) and total cook time.
  • Extended view of selected recipe containing all of the data in readable way.

Running existing docker

  1. Set .env file like this:
API_PORT=4000
API_URL=0.0.0.0:4000/app

MONGO_URL=db:27017
MONGO_DB_NAME=example
MONGO_USERNAME=example_user
MONGO_PASSWORD=example_pass
  1. Run make dev-build.
  2. Run make dev-start.
  3. Frontend will be running at localhost:3000, api at localhost:4000 and db at localhost:27017.

Good luck!

ziegler's People

Contributors

jnhfmn avatar meodta avatar

Watchers

 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.