Git Product home page Git Product logo

django-coding-practice's Introduction

Django Coding Challenge

Hi, this is the castLabs Django coding challenge. This challenge is designed to test your Django and Python skills.

Requirements

  • Completed using Python v3.6 and all code must be annotated with type hints from the standard library typing module.
  • Runs on docker and the application can be started with a single command docker-compose up
  • The running application can be reached in the browser at [docker host]:8080
  • The application is delivered with a sufficient admin reachable at [docker host]:8080/admin
  • Delivered as a public fork of this GitHub repository

Scenario

You are implementing part of an SDK licensing application used to permit clients to download the company's proprietary software. The sales team needs a feature which automatically notifies them when one of their client's licenses will expire (and thus prevent the client from using the associated package).

Task

A bare bones Django project is provided in the license_portal directory. Within the licenses application implement an email sending mechanism to notify the admin point of contact licenses.Client.admin_poc of their clients license licenses.License expiration times. The message must be sent to a clients admin point of contact only if the following conditions are met:

  1. The client has licenses which expire in exactly 4 months
  2. The client has licenses which expire within a month and today is monday
  3. The client has licenses which expire within a week
  4. All of the above

The email body must consist of a list of all a client's licenses which meet the above conditions and emails must only include details for a single client (e.g. a separate email for each client). The expiring licenses in the email body must include:

  • license id
  • license type
  • name of the package
  • expiration date
  • poc information of the client (name and email address)

Finally, this job must be trigger-able via an HTTP POST request without authentication or csrf validation and must include a summary of notifications sent since the application started on the homepage.

Tip: Use django's builtin django.core.mail.backends.locmem.EmailBackend

Bonus: Implement the licenses application as an API, and serve the frontend using a separate Docker image

Restrictions

None! Use whatever tools / third party libraries you feel are necessary to complete the task.

django-coding-practice's People

Contributors

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