jpb06 / dev-friends-workshop

Helping my team move forward with our frontend

Home Page:https://workshop-react-front.vercel.app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Workshop

Open in Visual Studio Code Front deployment Github workflow Quality Gate Status Maintainability Rating Security Rating Reliability Rating Coverage Coverage Technical Debt Code Smells Bugs Vulnerabilities Duplicated Lines (%) Last commit

Here is a little workshop to help my team move forward with our frontend ✨

                    

This is a continuation of the Workshop react FCs repo. Take a look at this archived repo if you want to know more about old implementations like the ones based on redux, for example.

You can find the deployed app here.

⚡ What is this repo about?

The original repo was created to convince everyone about React 16.8 features: hooks. Using only function components and hook is just great! Then the subject shifted to redux. Let's just say good bye to redux and its ecosystem for asynchronous tasks (thunks, sagas, whatever floats your boat).

You will find a few branches on the original repo; from oldest to newest:

Branch Description
noredux Bearbone comparison between class components and FCs/hooks, using CRA
redux Adding redux & redux-thunk to the mix. Still using CRA
react-query No more redux. Time for server state libraries! Using nextjs this time and making sure we reach 100% coverage

The current repo is an import of the react-query branch. We splitted frontend and backend in two different repos to tackle deployment issues.

⚡ Guidelines

🔶 General guidelines

🔶 Making sure we are understood

🔶 Code guidelines

🔶 Frontend guidelines

⚡ The Dev Friends application

Our objective here is to display a list of developers that can be filtered by their squad. We also want to be able to change the squad of a developer.

We will follow the guidelines described above. Let's take a look at the components tree of the app:

Components tree

⚡ Backend

You can find the backend repo here. It's a barebone express, so not much to see there.

Let's just list quickly the routes exposed by the backend:

Route Verb Description
💥 /squads 🔹 GET Retrieves all squads
💥 /squads/{id}/devs 🔹 GET Retrieves all devs belonging to a squad
💥 /devs 🔹 GET Retrieves all devs
💥 /devs/by-squad 🔸 POST Retrieves devs belonging to a list of squads passed in the request body
💥 /devs/change-squad 🔸 POST Moves a developer to another squad

About

Helping my team move forward with our frontend

https://workshop-react-front.vercel.app


Languages

Language:TypeScript 93.0%Language:JavaScript 6.6%Language:Shell 0.4%