Code Monkey home page Code Monkey logo

bowtie_backend_technical_assessment's Introduction

bowtie_home_assessment

Hello!

  • To run server create venv and run pip install -r requirements.txt from root folder
  • python3 manage.py migrate
  • python3 manage.py runserver

Main endpoint: GET http://127.0.0.1:8000/doctor/doctors/ (list of doctors)

  • GET http://127.0.0.1:8000/doctor/doctors/<id> doctor detail
  • GET http://127.0.0.1:8000/doctor/doctors/?district=Central&expand=consultation_fee,address filter by district

Other cases such as create Doctor, filtering can be found in doctor.test.py

  1. Choice of Framework & Library: Django & DRF
  • a) Benefits are extensive useful functionality ORM, migrations, serializers, REST framework, support of CRUD operations Drawbacks are monolithic structure, overkill for smaller projects.
  • b) Ease of implementation and testing; The project can bes easily extended
  1. Potential Improvement
  • Add more filters like search by doctor's availability via schedules
  • Add search, order by field name, e.g. name, category, address
  • Create view for schedule for visualization and availability calendar
  1. Production consideration
  • Depending on whether API will be public or private create authorization and assign permission access for the view
  • Change Django settings like DEBUG=False, set ALLOWED_HOSTS, SSL certificate setup, maybe docker container
  1. Assumptions
  • a) Each doctor object has separate schedule, fee so that by changing them it only affects one Doctor. All API functionality included in one DRF viewset escape complexity. 5 models were created to split data logically
  • b) ___

bowtie_backend_technical_assessment's People

Contributors

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