Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SockReviewForm: Allow users to leave a review #9

Open
6 tasks
Laoujin opened this issue May 13, 2019 · 1 comment
Open
6 tasks

SockReviewForm: Allow users to leave a review #9

Laoujin opened this issue May 13, 2019 · 1 comment
Labels
Forms Forms all the way

Comments

@Laoujin
Copy link
Member

Laoujin commented May 13, 2019

File: ´SockReviewForm.tsx´

Allow users to leave a Sock review.

// models.ts
export interface SockReviewModel {
  name: string;
  rating: number;
  fullReview: string;
}
  • Add a form with name, rating and fullReview
  • Add validation: name (required), rating (1-5) and fullReview (may not contain the word "smelly")
  • If passes validation, post to backend url /api/socks/:id/review
  • Create an ExpressJS backend and console.log the body 😎
  • Persist the body (FileSystem or database) 😈
@Laoujin Laoujin added the Forms Forms all the way label May 13, 2019
kkj930 pushed a commit to kkj930/React-New-Features that referenced this issue May 14, 2019
@timdebelder007
Copy link

it's mine

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Forms Forms all the way
Projects
None yet
Development

No branches or pull requests

2 participants