-
Within section, we are going to produce the brand new APIs that's needed seriously to create the Tinder clone
Within section, we are going to produce the brand new APIs that’s needed seriously to create the Tinder clone - /login: see customer’s history and make certain the affiliate can be log in to help you the applying, or not.
- /users/create: create a new affiliate from the app.
- /users/recommend: have the recommended pages. Inside software, advised users need to pursue particular requirements, for each member, which is about list, must not have complimentary request with the most recent member. Following that, new intercourse of any representative is opposite to the present owner’s intercourse.
- /requests/create: would a complement desires anywhere between 2 users.
This new Log on API
The brand new log in API will get the newest owner’s background and you may confirm you to information. In the event the customer’s information is good, the user can log in to the program and vice versa. To make the latest log on API, you need to produce the “auth.js” file inside the “routes” folder. An entire provider code of one’s log on API can be found right here.
their system is Post and request cargo is to contain the customer’s current datovГЎnГ lokalit zdarma fitness email address and you will customer’s code. If the customer’s information is valid, new owner’s gender and you can owner’s CometChat uid was came back right back since the a reply target. After that, a warning message could be came back should your owner’s background are maybe not appropriate. Your own is relate to the password snippet lower than to learn more.
An individual API
That it area commonly identify the latest APIs to own user government. To begin with, we must create the “pages.js” file into the “routes” folder. It will include a couple of API endpoints including undertaking a new associate account, suggest users based on the user’s sex and also the CometChat uid. A complete fouce code is present right here.
This new Carry out Affiliate API
Within this part, we’ll build a keen API in order to make a different sort of account for the the applying. The API are certain to get the latest below pointers. Its system is Article and we’ll post the shape studies format regarding client side in addition to demand is to secure the customer’s email address, user’s password, user’s many years, user’s intercourse, owner’s avatar, owner’s name, and you can customer’s CometChat uid.
The fresh API is always to take a look at types of the fresh new avatar image. Within software, i allow representative to publish a photograph having jpeg structure. Likewise, these data is necessary. For people who miss one thing in the demand payload, a caution message was came back straight back from the response. Additionally, brand new API tend to look at the owner’s current email address has been used in the program, or otherwise not. When it resided on program, a caution message might possibly be gone back to improve the consumer regarding you to definitely. You might relate to the latest lower than code snippet for more information.
The newest Recommend Profiles API
According to criteria, we should instead manage to possess pages to take on most other associate-pages and sometimes take on or refuse (swipe). Hence, we’re going to write an API so you can recommend profiles and have new directory of needed profiles for the UI. Within application, a consumer might possibly be demanded if that representative ought not to keeps people coordinating demand with the most recent representative. From there, this new gender of any affiliate will be opposite to the current customer’s gender. A complete source code exists here.
The fresh Match Demand API
Which part will determine this new APIs to have managing the complimentary desires. On the software, in case your most recent representative enjoys another person’s character, the modern user can also be swipe proper or click the center symbol. First and foremost, we have to create the “desires.js” document for the “routes” folder. It will contain a keen API endpoint and is also throughout the carrying out a separate complimentary demand. An entire provider password can be found here.
- 关于我们
- 人力资源
- 校园招聘
- 学习视频
- 板式家具设备
- 培训资料
- 学习资料
- 精密部件
- 福利待遇
- 木工机械设备
Within section, we are going to produce the brand new APIs that’s needed seriously to create the Tinder clone
2023-04-20- /login: see customer’s history and make certain the affiliate can be log in to help you the applying, or not.
- /users/create: create a new affiliate from the app.
- /users/recommend: have the recommended pages. Inside software, advised users need to pursue particular requirements, for each member, which is about list, must not have complimentary request with the most recent member. Following that, new intercourse of any representative is opposite to the present owner’s intercourse.
- /requests/create: would a complement desires anywhere between 2 users.
This new Log on API
The brand new log in API will get the newest owner’s background and you may confirm you to information. In the event the customer’s information is good, the user can log in to the program and vice versa. To make the latest log on API, you need to produce the “auth.js” file inside the “routes” folder. An entire provider code of one’s log on API can be found right here.
their system is Post and request cargo is to contain the customer’s current datovГЎnГ lokalit zdarma fitness email address and you will customer’s code. If the customer’s information is valid, new owner’s gender and you can owner’s CometChat uid was came back right back since the a reply target. After that, a warning message could be came back should your owner’s background are maybe not appropriate. Your own is relate to the password snippet lower than to learn more.
An individual API
That it area commonly identify the latest APIs to own user government. To begin with, we must create the “pages.js” file into the “routes” folder. It will include a couple of API endpoints including undertaking a new associate account, suggest users based on the user’s sex and also the CometChat uid. A complete fouce code is present right here.
This new Carry out Affiliate API
Within this part, we’ll build a keen API in order to make a different sort of account for the the applying. The API are certain to get the latest below pointers. Its system is Article and we’ll post the shape studies format regarding client side in addition to demand is to secure the customer’s email address, user’s password, user’s many years, user’s intercourse, owner’s avatar, owner’s name, and you can customer’s CometChat uid.
The fresh API is always to take a look at types of the fresh new avatar image. Within software, i allow representative to publish a photograph having jpeg structure. Likewise, these data is necessary. For people who miss one thing in the demand payload, a caution message was came back straight back from the response. Additionally, brand new API tend to look at the owner’s current email address has been used in the program, or otherwise not. When it resided on program, a caution message might possibly be gone back to improve the consumer regarding you to definitely. You might relate to the latest lower than code snippet for more information.
The newest Recommend Profiles API
According to criteria, we should instead manage to possess pages to take on most other associate-pages and sometimes take on or refuse (swipe). Hence, we’re going to write an API so you can recommend profiles and have new directory of needed profiles for the UI. Within application, a consumer might possibly be demanded if that representative ought not to keeps people coordinating demand with the most recent representative. From there, this new gender of any affiliate will be opposite to the current customer’s gender. A complete source code exists here.
The fresh Match Demand API
Which part will determine this new APIs to have managing the complimentary desires. On the software, in case your most recent representative enjoys another person’s character, the modern user can also be swipe proper or click the center symbol. First and foremost, we have to create the “desires.js” document for the “routes” folder. It will contain a keen API endpoint and is also throughout the carrying out a separate complimentary demand. An entire provider password can be found here.