Giter Site home page Giter Site logo

policiesandclient's Introduction

PoliciesAndClient

Back-End Assessment

How To Run the Proyect:

  1. Clone the repository https://github.com/ManuelRios94/PoliciesAndClient.git (If you need herl, visit https://help.github.com/en/articles/cloning-a-repository)

  2. Go to the folder where it was installed and run the command "npm install"

  3. Run the command "npm start"

  4. The application will run in http://localhost:3000/

How To Use:

You can send http get request in the following url for get the data:

(Always when you send a request you need to set a header "x-access-token" or "authorization" with the value of a client id). I recommend to use Postman (https://www.getpostman.com/) to test the endpoints.

Technical Notes:

  • I decided to always consult the API (Url Clients and Policies), in case it changes the data in the future.

  • I assume that the id and name of the customer data are a unique identifier

  • It was decided that authentication be handled through the handling of information in the header of the request. For the application to know who is making the http request, it needs to be added in the "x-access-token" or "authorization" header with the client identifier.

  • No models were used since there is no database, they do not need to be parsed. No complexity was found in the interaction with the different objects (Client and Policies). If necessary, they can be implemented with their possible methods.

policiesandclient's People

Contributors

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