GithubHelp home page GithubHelp logo

familytree's Introduction

familytree

system which can help a user define his family tree

Backend Coding Challenge for market pulse

How to setup the project for test

  1. clone
  2. cd familytree
  3. pip3 install -r requirements.txt # Note - better you do this using virtualenvwrapper
  4. python manage.py runserver 0:8000
  5. go to localhost:8000/admin
  6. login with [email protected]/@Least8Chars
  7. create family members as you wish.
  8. for querying the data using ORM 8.1 go to terminal 8.2 cd familytree 8.3 python3 manage.py shell 8.4 from family.models import FamilyMember, Marriage 8.5 create object of FamilyMember 8.5.1 fm = FamilyMember.objects.get(id=1) 8.5.2 fm 8.5.3. dir(fm)

to do:

following queries need to be addressed

  1. family-tree count immediate sons of <name>
  2. family-tree count all daughters of <name>
  3. family-tree count immediate cousins of <name>
  4. family-tree count wives of <name>
  5. family-tree is <name> and <name> related?
  6. family-tree count uncles of <name>

familytree's People

Contributors

kishorpawar avatar

Stargazers

James Rhett avatar

Watchers

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