Skip to content

Latest commit

 

History

History
100 lines (73 loc) · 3.47 KB

Sprint2.md

File metadata and controls

100 lines (73 loc) · 3.47 KB

The goal for the Sprint 2 was to develop the integrate frontend and backend, write unit test cases for both, and integration tests in cypress. Functionally, our goal was to make Login, Register, Edit Profile, and Home (previous posts by a logged in user) work.

Accomplishments

Planning

  • Sprint 2 board created here.

Development

Common :

Back-End :
1) Storage of resume as url.
2) Password encoding
3) Table Relations
	1) Link Company with Post.
	2) Fetch all posts of a user
4) Allow some API access for logged in users only.

Front-End :
1) Edit profile and Home Page accessible only when logged in.
2) Login and Register page accessible only when not logged in.

Register :

Back-End :
1) Adding new user to DB
2) User inputs Validation

Front-End : 
1) User Input Validation
2) Send data to backend
3) Show toast for success/error.
4) Show labels like field is required, email is not a valid.

Login :

Back-End :
1) Verify E-mail Id and Password
2) User Input Validation
3) Set JWT token in cookie.

Front-End :
1) Send User credentials to backend for validation
2) Show toast for success/error.
3) Show labels like field is required, email is not a valid.

Edit Profile :

Back-End : 
1) Receive Existing Data
2) Update user details
3) Validate User
4) Create separate APIs for updating profile, updating email (check if user already exists with the new email, update companyid and company name according the email provided), and updating password (check if current password is valid, only then reset password).

Front-End :
1) Fetch previous data and fill the form
2) Send  data to backend
3) Show labels like field is required, email is not a valid.
4) Create separate  tabs for updating profile, updating email, and updating password (provide current and new password).

Home Page :

Back-End :
1) Fetch user’s previous posts
2) Delete Post

Front-End :
1) Show posts (one tab posts by the user logged in, and one tab posts by others users requesting for logged in user's organization)
2) Show resume and job link buttons.
3) Delete post button

Read more about frontend in Front-end wiki.

Read more about backend in API wiki.

Read more about them here in Database wiki.

Testing

  • Frontend Unit test cases (Login)
  • Backend Unit test cases (Register)
  • Cypress Integration test cases (Login, register, navbar) Read more about testing in Testing wiki.

Documentation

Demo Videos