Giter Club home page Giter Club logo

ns8-tech-assessment's Introduction

NS8 Tech Assessment Submission

  • Ivan Minier

Technologies Used

  • Nodejs
  • Express
  • Typescript
    • TSLint

Deployment

  • Install dependencies

    $ npm install

  • Run API

    $ npm run start

Endpoints

  • /users

    • Will return a list of users.
  • /events

    • Will return all events for all users.
  • /events/user?id=[email protected]

    • Will return all events for user email address provided.
  • /events/last24h

    • Will return all events in the last 24 hours

Assumptions / Notes

Security

Assumed this would be added to an existing project where endpoints were already secured.

Data

Assumed data would already be available to the api thus there was no need to create end points to create and remove accounts. Used mock data and hard coded the time used to determine if a user logged in, in the last 24 hours, but would normally use system time and data from a database.

Note 1

Assumed api users would require a way to see available users on the system before submitting a request for a user. Therefore I created the /users endpoint.

Note 2

Given more time I would think of and cover some edge cases I might not have thought of. I would write tests and create more robust api docs.

ns8-tech-assessment's People

Watchers

James Cloos 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.