Coding-Coach / Coding-Coach/find-a-mentor-api

Generate slugs for all users

Open
#73 5 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
TypeScript
Stars
36
Forks
33
PR merge metrics
No merged PRs in 30d

Description

We need to generate a slug for all users in the database (and all new users), we are going to use it to create links in the FE for their profile pages.

- This task requires to update the user schema and add a new `slug` field, it should be unique and indexed in the database.
- When a new user is created we need to generate a new slug for the new user
- Update all user endpoints to find the user by `slug` or `_id`
- Create a script to assign a slug to the current user in the database

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.