1. Need to build login page using vue.js(email and password field is enough , Design is not necessarily needed.)
2. Backend: Laravel
3. Need to call Login API from the backend that response should be in this format.
"message": "Email or password is incorrect"
Here in the login page, need to display a message which is present in the api reponse.
"message": "Login successfully"
NOTE: API Call response can hardcoded in the backend side. Frontend functionality is needed. Not even a design. API call using AXIOS is a must.
If the login response is true then call other API using the "access_token" , the response is true, redirect to home page.
The responses from other api using token is given below:
"full_name": "TEST USER",
"profile_img": "[login to view URL]",
if the api status is true, then redirect to home page and store all the second api reponses in LOCAL STORAGE of the system. (THIS IS MUST)
after redirecting to home page, need to display the user details in the layout using local storage only.
So totally two pages. Home page need to be redirected only if login is done orelse need to redirect to login page. Design is not necessary only functionality is needed.
Technology: Vue.js and Vuesax(ONLY FOR FRONTEND) + Laravel(ONLY FOR BACKEND)
AMOUNT: Rs. 300 for this full task. No extra money will be given.