Day 04/100 - converted workflows to codes

ยท

1 min read

Hello ๐Ÿ‘‹. Good morning, afternoon and evening depending on your location.

Being the fourth, I started the day building portfolio template, following a tutorial on Youtube. You know as a backend focused developer, I am not aesthetic-driven and I have learnt alot from the tutorial.

Nonetheless, I did convert the last pieces of API workflows to code. I am looking out to draw more though. Anyways, let's get to work

I converted 5 workflows ๐Ÿ‘‡.

In the picture, we have five workflows for five different routes. I will discuss only one here

These are the list of things I did ๐Ÿ‘‡(create parent route)

  • wrote validation for the request body

  • extracted the schoolId from the authenticated user

  • checked if the parent exists by req.params.id and schoolId

  • created the parent

  • checked if the user is really interested in linking the parent to student right away

  • did the linking and updated their information to the database

  • sent appropriate response

  • tested the route with postman, and documented it

I am still looking forward to other interesting things like deployment, raw testing, dockerizing, and so on.

So help me God ๐Ÿ™. Please I am open to corrections.

God bless ๐Ÿ™.

ย