Skip to content

Frontend Documentation

bahetianjali edited this page Feb 3, 2022 · 27 revisions

Registrations page Screen

Registration_form_image

Registration form

The Registration page take user to a HTML form for registering a new user in the system which has following fields:

  • First Name (String)
  • Last Name (String)
  • Current Location (String)
  • Current Company Name (String)
  • School (String)
  • Years of Experience (Drop-down)
  • Email (String)
  • Password (String)

All the fields are compulsory and Email Address is a unique text field and each user should have a unique organizational email address.

The form response is used as a request payload for /register API when the user clicks the REGISTER button.

The form will support validation of the frontend which is used to check for empty fields and wrong input (like email address validation). User is prompted about failed validation while filling out the form.

Already a user?

If the user is already registered then, they can proceed to the login form using Back to login? which redirects to /login API.

Forgot password?

If the user forgot the password then he can use Forgot Password to reset the account password.

On successful Registration

On successful registration, the user is redirected to the user profile page. On failure, the user is redirected to the registration form.

Edit Profile Screen

  • The Edit User screen uses the
http://localhost:3000/edit-profile
``` API.
***
#### Navbar
* The Home in the navbar directs to the home screen using the `http://localhost:3000/home` API. 
* The Requests in the navbar are direct to the home screen using the `http://localhost:3000/posts` API. 
* The Edit Profile in the navbar directs to the edit profile screen using the `http://localhost:3000/edit-profile` API. 
* The Posts in the navbar direct to the creation of posts screen using the `http://localhost:3000/create-post` API.  
* The Logout in the navbar directs to the login screen using the `http://localhost:3000/login` API. 

#### Edit Profile Form
* The “First Name” textbox should use the `first_name` field value from the GET response payload.  
* The “Last Name” textbox should use the `last_name` field value from the GET response payload.  
* The “Current Location” textbox should use the `current_loaction` field value from the GET response payload.  
* The “Current Company Name” textbox should use the `current_company_name` field value from the GET response payload.  
* The “Current Position Title” textbox should use the `current_position` field value from the GET response payload.  
* The “School” textbox should use the `school` field value from the GET response payload.  
* The “Years of Experience” textbox should use the `years_of_experience_id` field value from the GET response payload.  
* The “Email Address” textbox should use the `email` field value from the GET response payload.  
* The “Password” textbox should use the `password_hash` field value from the GET response payload.

***

* These are mock-up screens, and after clicking Save Changes the above fields call PUT API. 

Clone this wiki locally