Тёмный

RESTful API style Login System with Php (backend) and JS(frontend) - Part I 

CS with NJ
Подписаться 3,3 тыс.
Просмотров 13 тыс.
50% 1

#RESTAPI #RESTfulLoginSystem #PHPLoginSystemAsRESTAPI
In this tutorial I have implemented Registration and Login System in RESTful API style where all login related functionality (signup, login, update, logout, unsubscribe) is offered as different REST services and both frontend and backend are hosted on different domains.
The technologies used are: Php, Javascript, FETCH API, HTML, CSS and MySql for as Database.
0:00 - Introduction
03:15 - Project Demo
07:42 - Database creation & Connectivity
19:55 - Backend Design Style
27:52 - Landing Page & Signup page - frontend logic
52:30 - CORS issue and its resolution
55:10 - Signup service - backend logic
link to part II • RESTful API style Logi...
Code could be found at github.com/nur...

Опубликовано:

 

14 авг 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 60   
@CSwithNJ
@CSwithNJ 3 года назад
This is Login System implemented in PHP(backend) and Javascript(frontend) as RESTAPI where both frontend and backend act as independent domains.
@luckyreddy6743
@luckyreddy6743 2 года назад
Create a REST API and implement a login and signup page after login successfully integrate any open source movie API
@luckyreddy6743
@luckyreddy6743 2 года назад
What we have to do for the application can you brief it
@abhinandabhi9713
@abhinandabhi9713 3 года назад
One of the best video on PHP REST API
@CSwithNJ
@CSwithNJ 3 года назад
Thanks alot; it meant so much to me :)
@seeker3794
@seeker3794 3 месяца назад
Thank you very much❤
@CSwithNJ
@CSwithNJ 2 месяца назад
Glad it helped 🙏
@vibhay_1
@vibhay_1 3 года назад
It was great lecture 💓💓
@CSwithNJ
@CSwithNJ 3 года назад
Thanks you so much
@g.pavani5275
@g.pavani5275 3 года назад
New to channel🎉🎉🎉
@CSwithNJ
@CSwithNJ 3 года назад
Welcome to my channel 😊
@aogunnaike
@aogunnaike 3 года назад
God bless you for this.. 😊
@andreivitanescu8291
@andreivitanescu8291 3 года назад
👍🏻👍🏻👍🏻 a great work
@CSwithNJ
@CSwithNJ 3 года назад
Thanks alot 😊
@Ratnakarbpollai
@Ratnakarbpollai Год назад
It is very useful for me
@bughunter9766
@bughunter9766 3 года назад
Amazing ,,,,,
@CSwithNJ
@CSwithNJ 3 года назад
Thanks
@soufyensk5210
@soufyensk5210 3 года назад
Perfect. You did it right 👍
@CSwithNJ
@CSwithNJ 3 года назад
Thanks alot 😃
@c-techgamming465
@c-techgamming465 3 года назад
for setting, I installed PHP and MySQL but can not click submit on sign up button on the frontend
@CSwithNJ
@CSwithNJ 3 года назад
I need to see your code to be certain but a similar comment I had received on another video; turns out he had changed the submit element from button to input type but in the js he was still trying to access the submit button. Since the there was no html button hence nothing happened. Plz make sure if you have made any such change then update it everywhere. Also you can upload the code on github and send me the link; I'll go through it and try to help you anyway I could
@TroyNiemeier
@TroyNiemeier 2 года назад
The only odd thing I noticed was that you chose to store the same password hash twice. Because its only purpose is to confirm that the passwords are identical at the point of signup (or a password change), persisting them redundantly is rather pointless. Your implementation is pretty good otherwise :)
@CSwithNJ
@CSwithNJ 2 года назад
Thanks alot :)
@Vincent-fo9ie
@Vincent-fo9ie Год назад
hello im doing a similar project but without an API. I would like to ask are you using a specific webserver to run the server? if yes what webserver do you use? thanks very much!
@CSwithNJ
@CSwithNJ Год назад
I am using development server that comes pre-shipped with PHP itself. The command to start that server is "php -S localhost:8080" or any other port number.
@Vincent-fo9ie
@Vincent-fo9ie Год назад
@@CSwithNJ thankyou!
@user-rg2ci6wy7y
@user-rg2ci6wy7y 2 года назад
Hello. Can you help me. In fetch two arrays [ { "id": "70", "title": "post", "category": "1", "description": "body } ][ { "id": "3", "category": "Hobby" } ] How i can get them out?
@CSwithNJ
@CSwithNJ 2 года назад
Rather then doing that create an array and keep pushing both objects to that. Then stringify that array and send it in the fetch body. Thus way first object will be available at index 0 and second at index 1. One more thing, you cannot send multiple pieces of independent data with a single fetch request. All the pieces must be enclosed within a single structure be it array of objects ot object of objects.
@user-rg2ci6wy7y
@user-rg2ci6wy7y 2 года назад
@@CSwithNJ Thank's
@CSwithNJ
@CSwithNJ 2 года назад
I hope it helped
@Ratnakarbpollai
@Ratnakarbpollai Год назад
Thanks mam thanks a lot For this type of complete understanding of rest api frontend to backend.. But i have doubt on mysql user and pwd and host What use for user and host and password i can't know it is different in different case Can you help me?
@CSwithNJ
@CSwithNJ Год назад
User and password are to log into database (mysql in our case) and host is where database server is listening for any requests. Username and password must be different as every user sets them as per their preferences however default host url is same in most of the cases unless it has explicitly been changed
@Ratnakarbpollai
@Ratnakarbpollai Год назад
@@CSwithNJ mam i am add a user but the user can acess all data Mam please help me I am a biggener Keep support mam please I think you can help me
@joshuankrumah-buadu9341
@joshuankrumah-buadu9341 3 года назад
Source Code please
@anjalisaxena2942
@anjalisaxena2942 3 года назад
hello ma'am I got stuck at 50:08 where we have to run php server . it is showing error like($ : The term '$' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.) please help.
@CSwithNJ
@CSwithNJ 3 года назад
Anjali any error with "cmdlet" in it is powershell command which is the terminal window that you r using. It is not PHP related error. Plz checkout how to start php server from powershell.
@Vincent-fo9ie
@Vincent-fo9ie Год назад
@@CSwithNJ hello sorry i cannot find any reference or solution for this problem, can you help me? thankyou
@CSwithNJ
@CSwithNJ Год назад
Try command line instead of powershell.
@logisticbsa845
@logisticbsa845 Год назад
Hellow maam , i wanna asking some solve i can solved the problem , i already strt with the $ php -S localhost:8000 -t backend/ , but the vc said bash:php : not found command how can i solve it can help me
@CSwithNJ
@CSwithNJ Год назад
Either PHP is not installed on your system or its path is not set in the environment variable
@ankansamanta4533
@ankansamanta4533 3 года назад
Are Facebook Android app and website connected to each other using the API?
@CSwithNJ
@CSwithNJ 3 года назад
Don't know for sure but they certainly can and many of them do share data with each. In particular sharing cookies is very common that is why when visit a website and then open up ur Facebook you will see all those items being promoted there that u just peeked at there.
@ankansamanta4533
@ankansamanta4533 3 года назад
If I write my website in php and mobile app in java and use mysql database, then I have to use api to show the same content in both.
@CSwithNJ
@CSwithNJ 3 года назад
Yes you can do that; infant you can have as many client side as u like each one incorporating different technology.
@ankansamanta4533
@ankansamanta4533 3 года назад
phpmailer ko mai apni php ki website mai use Karke email par OTP send Kar Sakta hu.....par mai kaise phpmailer ko android app(Written in Java) Mai use Karke email par OTP send Kar Sakta hu
@CSwithNJ
@CSwithNJ 3 года назад
You need to make http request to php backend through Http client for java. Just like I have used fetch in my video under which you are commenting
@wasss3745
@wasss3745 2 года назад
Can I get a source code?
@CSwithNJ
@CSwithNJ 2 года назад
you could find the code at github.com/nurj20/RESTful-API-style-Login-System-with-Php-backend-and-JS-frontend-
@wasss3745
@wasss3745 2 года назад
@@CSwithNJ thankyouu
@CSwithNJ
@CSwithNJ 2 года назад
Happy to help :)
Далее
Будзек и рецепт🐝
00:25
Просмотров 109 тыс.
Get 10 Mega Boxes OR 60 Starr Drops!!
01:39
Просмотров 5 млн
PHP REST API From Scratch [1] - Database & Read
32:18
Просмотров 510 тыс.
When RESTful architecture isn't enough...
21:02
Просмотров 268 тыс.
I've been using Redis wrong this whole time...
20:53
Просмотров 351 тыс.
How To Create A Simple REST API in PHP
13:02
Просмотров 218 тыс.
What does MySQLi vs PDO Teach You about Development?
13:19
Будзек и рецепт🐝
00:25
Просмотров 109 тыс.