Giter Site home page Giter Site logo

platform-coe-coding-challenge's Introduction

Platform COE Hiring Challenge

It contains these folders and files, following the recommended CAP project layout:

File or Folder Purpose
app/ content for UI frontends
db/ domain models and data
srv/ service models and code
package.json project metadata and configuration
readme.md this document

Next Steps

  • Clone the repo and run npm i to install the dependencies
  • Open a new terminal and run npm run start to launch the backend server
  • Open a new terminal and run npm run watch-population-densities to launch the server and the frontend
  • The app uses CDS mock authentication with the following user profiles:
    • name: "user", password: "1234" - grants READ permissions for all records
    • name: "admin", password: "1234" - grants READ, WRITE permissions for all records
  • The API is hosted at http://localhost:4004/odata/v4/api/
    • Return all cities: http://localhost:4004/odata/v4/api/Cities
    • Sort by name / population / area in descending or ascending manner: http://localhost:4004/odata/v4/api/Cities?$orderby=<property> <order: asc/desc> where property can be "name", "population" or "area" and order can be "asc" for ascending and "desc" for descending order respectively
    • Filter the cities by name using a “contains” filter: http://localhost:4004/odata/v4/api/Cities?$filter=contains(name,'New')
    • An endpoint to add new cities with name, population and area during runtime: http://localhost:4004/odata/v4/api/addCity with the parameters set in POST request data object like
      {
          "city":{
              "name": "new city",
              "population": 1000000,
              "area": 2
          }
      }
      
  • The UI loads the full dataset from the service and shows it in a table with all 4 columns. It also includes a calculated density column and highlights rows with population over 1 million
  • The tests in /tests/test.js perform unit tests for all the specified functionality. You can run these tests by running npm run test

platform-coe-coding-challenge's People

Contributors

adityajayantgupta 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.