seed
seed copied to clipboard
feat(front,back): remove field "userName"
Reason:
it's rarely used by SaaS startups, mostly by social networks.
Parts:
- Backend endpoint @Get('is-username-free/:userName')
- DTO UserIsUsernameFreeDTO
- Query UserIsUsernameFreeQuery
- QueryHandler and its usages UserIsUsernameFreeQueryHandler
- Field definition in Prisma schema file
- Prisma Migration for the new field. Create with
$ yarn prisma migrate dev --name users_add_email
- Any other usages of wording "username", "userName" and "USERNAME" (there are places on backend and frontend, but mostly single-line removals
Testing:
- Check that command
$ yarn format && yarn precommit && yarn nx affected:build
succeeds - Check that new user can be created in app
front-web
(http://localhost:4200)
Related to https://github.com/spy4x/seed/issues/109 - field "email" replaces field "userName".