This repository was archived by the owner on Jan 12, 2026. It is now read-only.
forked from Code-4-Community/scaffolding
-
Notifications
You must be signed in to change notification settings - Fork 1
Ns link signup form to backend #82
Merged
Merged
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
5b8b141
add api call
nourshoreibah ee3f432
add dto
nourshoreibah be502bb
improve error handling to debug login
nourshoreibah 5bf7473
switch to axios
nourshoreibah 43d30ef
switch to axios and use env variable
nourshoreibah 4661c3b
Add better alerts and switch to formik (resolve conflicts)
nourshoreibah fcf687f
fix submission and add user exists alert
nourshoreibah 442ee60
Merge branch 'main' into ns-link-signup-form
nourshoreibah File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,9 +1,12 @@ | ||
| import { IsEmail, IsString } from 'class-validator'; | ||
| import { ApiProperty } from '@nestjs/swagger'; | ||
|
|
||
| export class SignUpDto { | ||
| @ApiProperty({description: "The user's email address", example: "test@gmail.com"}) | ||
| @IsEmail() | ||
| email: string; | ||
|
|
||
| @ApiProperty({description: "The user's password", example: "password123"}) | ||
| @IsString() | ||
| password: string; | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| export type SignUpDto = { | ||
| email: string; | ||
| password: string; | ||
| } | ||
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could be a good idea to create a new folder at the apps directory which will house anything that both the frontend and backend need to share like DTOs. This is so that we can avoid repeated code.
Again, definitely don't need to do this in this PR. Just leaving this so we know for the future!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll probably wait on this one just so I can pull before I rewrite the imports on all the files!