Compare commits

...

8 Commits

Author SHA1 Message Date
Possible 9938840401 Update 2025-01-23 00:16:28 +01:00
Possible fc01741407 Update | more tasks and separation of tools 2025-01-22 22:23:29 +01:00
Possible 16507f7f7d Update 2023-11-16 18:55:31 +01:00
manaknight cfb5cede83 Update 'README.md' 2022-10-17 18:26:14 +00:00
manaknight 619d5db87a Update 'README.md' 2022-09-01 19:41:37 +00:00
manaknight d9eacb74c1 Update 'README.md' 2022-09-01 19:15:27 +00:00
manaknight 8b57719a52 Update 'README.md' 2022-07-11 20:10:46 +00:00
manaknight f07a653bc3 Update 'README.md' 2022-07-11 17:56:51 +00:00
+14 -11
View File
@@ -1,6 +1,8 @@
# mobile_task
## This project is a toy project for training and quality assurance purposes
Task 1: Oct 18 2021
# MOBILE TASK
### NOTE: Use MVVM architecture
1. Initialize an app. Connect the app with splash screen and icon. Configure app to use any one of the custom font globally.
@@ -10,7 +12,7 @@ Task 1: Oct 18 2021
- Login screen takes email and password. Do all the basic validation on client side and display proper error message if theres error from the API. Display the error message either in toast, custom dialog or native alert. API endpoint is https://reacttask.mkdlabs.com/v2/api/lambda/login. Request body are email, password. Look at the request below.
- Register screen takes email, password, first_name, last_name(and code for this VOYD app). Validation similar to Login screen should be applied. API endpoint is https://reacttask.mkdlabs.com/member/api/register. Call register api first for email, role and password. Then call https://reacttask.mkdlabs.com/v2/api/lambda/profile to save first_name and last_name and code.
- Register screen takes email, password, first_name, last_name(and code for this VOYD app). Validation similar to Login screen should be applied. API endpoint is https://reacttask.mkdlabs.com/lambda/api/register. Call register api first for email, role and password. Then call https://reacttask.mkdlabs.com/v2/api/lambda/profile to save first_name and last_name and code.
- Forgot password screen should ask for email. Read the forgot api below.
@@ -18,11 +20,8 @@ Task 1: Oct 18 2021
3. Create the Home screen
4. Persist the token that we receive after successfully authenticating using AsyncStorage. You can persist other data using Redux or make custom useContext, useReducer and AsyncStorage mechanism. (If React Native)
5. Implement the UI of dashboard and connect the drawer on the left side.
6. Use MVVM if doing it in Android or Swift.
4. Implement the UI of dashboard and connect the drawer on the left side.
5. Make an additional screen with QR code scanner - it should be able to scan a QR code and and redirect to the page.
## Login
@@ -53,12 +52,13 @@ Response
https://reacttask.mkdlabs.com/v2/api/lambda/register
Method POST
content-type application/json
x-project cmVhY3R0YXNrOjVmY2h4bjVtOGhibzZqY3hpcTN4ZGRvZm9kb2Fjc2t5ZQ==
x-project cmVhY3R0YXNrOmQ5aGVkeWN5djZwN3p3OHhpMzR0OWJtdHNqc2lneTV0Nw==
body
{
"email": "member@manaknight.com",
"password": "a123456",
"role": "member"
"role": "member",
"is_refresh": false
}
Response
{
@@ -80,9 +80,11 @@ Authorization Bearer <token>
x-project cmVhY3R0YXNrOjVmY2h4bjVtOGhibzZqY3hpcTN4ZGRvZm9kb2Fjc2t5ZQ==
body
{
"payload": {
"first_name": "<update>",
"last_name": "<update>"
}
}
Response
{
"error": false,
@@ -105,7 +107,8 @@ Response
{
"error": false,
"message": "message",
"code" : "<code>"
"code" : "<code>",
"token": "<token>"
}
```