Giter VIP home page Giter VIP logo

outlier-challenge-json-db's Introduction

Outlier.org


Outlier Engineering Node.js JSON DB Challenge

Our apps need to query and store lots of information. We want to make sure that you have a good understanding of JavaScript and Node.js fundamentals. Can you build a simple API that can read data from and write data to JSON files with Node.js while following Outlier's best practices?

The Challenge

Build an API with the following:

  • Endpoints
    • PUT /:student-id/:propertyName(/:propertyName)
      • Stores data within /data/${studentId}.json.
      • If that file or property doesn't exist it is created.
      • Should also set nested properties: curl -X PUT -d '{ "score": 98 }' http://localhost:1337/rn1abu8/courses/calculus/quizzes/ye0ab61 would mean that require('./data/rn1abu8.json').courses.calculus.quizzes.ye0ab61.score === 98
    • GET /:student-id/:propertyName(/:propertyName)
      • Retrieves data from /data/${studentId}.json. Returns 404 if that file or property doesn't exist.
      • Should also retrieve nested properties: curl http://localhost:1337/rn1abu8/courses/calculus
    • DELETE /:student-id/:propertyName(/:propertyName)
      • Removes data from /data/${studentId}.json. Returns 404 if that file or property doesn't exist.
      • Should also remove nested properties.
  • Tests
    • Each endpoint should have its own test

Instructions

How to attempt this challenge:

  1. Create a new repo in your account and note the git url
  2. Clone this repo
  3. Solve the challenge
  4. Set your new repo as the origin: git remote set-url origin ${your repo url}
  5. Push your solution to your repo

You must follow these steps for your solution to be accepted -- forks or other methods will not be considered.

outlier-challenge-json-db's People

Contributors

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