4Geeks logo
4Geeks logo
About us

Learning library

For all the self-taught geeks out there, here our content library with most of the learning materials we have produces throughout the years.

It makes sense to start learning by reading and watching videos about fundamentals and how things work.

Full-Stack Software Developer

Data Science and Machine Learning - 16 wks

Search from all Lessons

Social & live learning

The most efficient way to learn: Join a cohort with classmates just like you, live streams, impromptu coding sessions, live tutorials with real experts, and stay motivated.

โ† Back to Projects

Continue learning for free about:

Family Tree Static API with Flask

Goal

4Geeks Coding Projects tutorials and exercises for people learning to code or improving their coding skills

Difficulty

beginner

Repository

Click to open

Video

Not available

Live demo

Not available

Average duration

8 hrs

Technologies

Based on the technologies/strategies we've learn build a static API that handles a family tree. You're free to use your own family information, you can use fake data too.

๐ŸŒฑ How to start this project

Do not clone this repository.

The first step to start coding is cloning the python boilerplate or nodejs boilerplate on your local computer or gitpod.

a) If using Gitpod (recomended) you can clone the boilerplate by:

b) If working locally type the following command from your command line:

  • Python: git clone https://github.com/4GeeksAcademy/flask-rest-hello.
  • Nodejs: git clone https://github.com/4GeeksAcademy/expressjs-rest-hello.

๐Ÿ’ก Important: Remember to create a new repository, update the remote (git remote set-url origin <your new url>), and upload the code to your new repository using add, commit and push.

๐Ÿ“ Instructions

Your API must have, at least, 7 members spread throughout 3 generations:

1grandparent -> parent -> current generation

The family tree must be represented as an object tree structure, i.e.: each person (node in the tree) must have: id, name, last-name, age, and a reference (id) to its parents and children (if any).

  • GET /all The API must expose an endpoint that returns the full list of family members ordered by oldest to younger.
  • GET /member/<int:id> The API must expose an endpoint that returns a specific member of the family tree by their id (which should be unique) and the information about its children and parents.

Technologies

The API must be developed using Flask or Expressjs and each endpoint must return a valid JSON file.

๐Ÿ’ก Hints

You may want to draw (pen and paper) the tree structure to have a "visual" structure in mind. Use the lines to display the references between parents and children.

The references should be the members' id number.

Create your data structures before you create the endpoints, use global variables.

Goal

4Geeks Coding Projects tutorials and exercises for people learning to code or improving their coding skills

Difficulty

beginner

Repository

Click to open

Video

Not available

Live demo

Not available

Average duration

8 hrs