Put in order · Vibe coding with Claude Code course · Module 7: LinkedIn clone

Sorting: Steps of the applyToJob action

Arrange the steps of the applyToJob Server Action:

Items to put in order

  • Saving the resume in data/resumes and the application with the status pending
  • revalidatePath of the offer page
  • getCurrentUser() determines the candidate
  • safeParseAsync checks the letter and the resume (size, first bytes %PDF-)
  • Rejecting your own offer and a second application

You can check the correct answer by solving this task in the CodeWorlds game.