React.jsda tayyorlangan starter kodni davom ettiring!
Vazifaning ko'rinishi : Figma URL
API ning asosiy URLi: http://92.63.206.40:1122/api
❗❗❗ Ishni boshlashdan oldin ushbu repozitoriyani o'zingizga fork qilib oling.
- Log in :
http://92.63.206.40:1122/api/login
- Sign in :
http://92.63.206.40:1122/api/signin
- User data :
http://92.63.206.40:1122/api/user
- Faculty list :
http://92.63.206.40:1122/api/faculty
- Change password :
http://92.63.206.40:1122/api/change_password
- Change phone :
http://92.63.206.40:1122/api/change_phone
- Change email :
http://92.63.206.40:1122/api/change_email
- Log in page:
http://92.63.206.40:1122/api/login
- Sign in page:
http://92.63.206.40:1122/api/login
- Profile page:
http://92.63.206.40:1122/api/login
Request Method - POST
Payload:
login
password
Response:
{
"msg": "ok",
"token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzb21lIjoicGF5bG9hZCJ9.Joh1R2dYzkRvDkqv3sygm5YyK8Gi4ShZqbhK2gxcs2U"
}
Request Method - POST
Payload:
login
password
surname
name
faculty_id
phone
email
Response:
{
"msg": "ok"
}
Request Method - GET
Requst Header:
x-access-token
: token
Login qilgan vaqtda oladigon tokenni request headerga qo'yib jonatiladi
Response:
{
"msg": "ok",
"surname": "Surname",
"name": "Name",
"faculty_id": 123,
"id": 15,
"std_code": 123456,
"phone": "+998901234567"
}
Request Method - GET
Response:
{
"1": "Faculty1",
"2": "Faculty2",
"3": "Faculty3",
...
}
Request Method - POST
Requst Header:
x-access-token
: token
Payload:
old_password
new_password
repeat_password
`
Response:
{
"msg": "ok"
}
Request Method - POST
Requst Header:
x-access-token
: token
Payload:
phone
Response:
{
"msg": "ok"
}
Request Method - POST
Requst Header:
x-access-token
: token
Payload:
email
Response:
{
"msg": "ok"
}
React.jsda tayyorlangan starter kodni yuklab olib davom ettiring!
O'rnatib olish - yarn install
Ishga tushirish - yarn start
1.Figmadagi sign up
sahifasini ishlab chiqish va API bilan bog'lash
1.Figmadagi sign in
sahifasini ishlab chiqish va API bilan bog'lash
1.Figmadagi profile
sahifasini ishlab chiqish va API bilan bog'lash
❗❗❗Sahifalarni ishlab chiqish jarayonida kamida styled-components
, redux
, , axios
, hooks
va react-router-dom v6
foydalanish talab qilinadi!
Asosiy packetlar o'rnatilgan.