Giter VIP home page Giter VIP logo

backend-developer-test's Introduction

Build Status

API documentation

API endpoint

Rate Limit

  • The rate limit is setup with redis on heroku
  • Only the public API has throttle limit set. The Admin API has no throttle limit
  • The Authentication Endpoints do not have any rate limits
  • On the public route only 12 API calls are allowed per minute

Authentication

After signup/signin a JWT will be passed in the body. When making requests to the protected endpoints, add the token in the Authorization header in the format Bearer token

Software Developer Application Test

Create a API that serves the latest scores of fixtures of matches in a โ€œMock Premier Leagueโ€

User Types

There should be:

  • Admin accounts which are used to
    • signup/login
    • manage teams (add, remove, edit, view)
    • create fixtures (add, remove, edit, view)
    • Generate unique links for fixture
  • Users accounts who can
    • signup/login
    • view teams
    • view completed fixtures
    • view pending fixtures
    • robustly search fixtures/teams
  • Only the search API should be availble to the public.

Authentication and Session Management

  1. Use redis as your session store.
  2. Authentication and Authorization for admin and user accounts should be done using Bearer token and JWT.

Tools/Stack

  • NodeJs (JavaScript or TypeScript)
  • MongoDB
  • Redis
  • Docker
  • POSTMAN
  • Jest
  • Express

Tests

Unit tests are a must, submissions without tests will be ignored.

Submission

  1. Your API endpoints should be documented in POSTMAN.
  2. Seed the db with lots of data before final submission.
  3. Code should be hosted on a git repository, Github preferably.
  4. The API should be hosted on a live server (e.g. https://heroku.com)

Bonus

You'll get bonus points for:

  1. containerization using docker.
  2. Thorough documentation using POSTMAN.
  3. e2e tests and use of Jest for tests.
  4. web caching API endpoints using Redis.
  5. Implementing rate limiting for user account API access.

Time Duration

7 days

NB:

Please send an email to acknowledge the receipt of this document.

backend-developer-test's People

Contributors

eziamakanv avatar jirevwe avatar vhaos avatar noxecane avatar

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.