Coder Social home page Coder Social logo

api-service-starter-master's Introduction

Node.js Challenge: Microservice Starter

Goal

To test your ability to be self sufficient, work with 3rd party data, and write code. You have about 4 hours to complete the challenge and at the end you’ll present your work.

Challenge

Write a Node.js server that pulls data from an external data source and returns it in the Common Microservice API format. This is a trivialized version of an API that is used on a Collinear Group project. The goal of the API is give a common API when working with many disparate data sources.

The external data source that you will use can be any kind of public data: a downloaded CSV, data you manually scrapped from a website, or a public API. It is up to you to choose the source.

Evaluation

At the end of the alotted time you will join up with the Collinear Team and walk us through your approach. Be prepared for questions.

Getting Started

You can refer to the existing index.js as an example of a service that implements the Common Microservice API.

Put your code in a file called app.js and update the package.json to run your service and not the example one.

Ready? Go!

Common Microservice API

Get server info (/)

Returns:

  • server: Object
    • name: string
    • apiVersion: string
  • availableDataSeries: Object
    • <seriesName>: Object
      • name
      • description

Get data (/api/:seriesName)

Returns:

  • format: "date"
  • initialDataSet: Array
    • Array
      • <UNIX timestamp>: number
      • <dataValue>: number

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.