REST style E-Commerce Website with JavaScript & PHP | no frameworks or libraries | part VIII

preview_player
Показать описание
Database Based Shopping Cart Implementation for registered users
In this playlist we will journey together to build a complete e-commerce website and will learn following professionally sought after skills:
1. REST API based .
2. SPA: Single Page Application for faster loading.
3. Code separation between frontend & backend.
4. Frontend & backend as two separate websites that communicate over FETCH API
5. Understand and handle CORS (Cross-Site-Resource-Sharing) related issues..
6. Frontend implementation in JS, backend implementation in PHP.
7. No Frameworks or libraries; able to code and develop without any framework crutches.
And much more...

#jsproject , #phpproject, #ecommerc, #ecommercewebsite, #HTMLcssJS, #HTML-CSS-JS-Php,
#SinglePageApplication, #SPA, #RESTapiBasedWebsite, #RESTapiBasedEcommerceWebsite, #facade, #FacadeDesignPattern
#php, #CORS, #fetch, #FetchApi, #REST
Рекомендации по теме
Комментарии
Автор

Hi, I would love to see you create a php mvc framework from scratch. Thanks

terrymurray
Автор

Que maravilla traje los productos.
jajajajaaj
Aver que sigue.

beticohernandez
Автор

This is a great project for the intermediate developer. Im about to start video 8. Do you update the stock quantity in the database when an item is purchased? Thanks again 👍🏾

vergilkelley
Автор

I think on the minute 13:20, i've got an error so i just:

Changes $result->affected_rows to $conn->affected_rows since affected rows is a property of the connection object for INSERT queries

it will be:

function getCartId($user_id)
{
global $conn;
$cart_id = null;
$stmt = "SELECT id FROM cart WHERE user_id = $user_id;";
if ($result = $conn->query($stmt)) {
if ($result->num_rows) {
$cart_id =
} else {
$stmt = "INSERT INTO cart (user_id) VALUES ($user_id);";
if ($conn->query($stmt)) {
if ($conn->affected_rows) {
$cart_id = $conn->insert_id;
}
}
}
}
return $cart_id;
}

ahmadmustaffa
Автор

Hello.
I will make a pause with your project I will stay in brings the products of the different categories in console it is seen that it brings them but it gives a cors problem

beticohernandez
Автор

Hello.
I will take a break with your application, it has generated problems in the code.
Next year I continue.
Thanks for sharing your knowledge.

beticohernandez
Автор

Inicie de nuevo con el js y teniendo mas claras las ideas a ver si no tengo tantos errores
Una pregunta más de cultura que de chisme como decimos en Colombia.
¿Cómo es la vida rutinaria en tu país?
Leo que actualmente el desarrollo web lo comanda tu país e india mas que los estados unidos
¿eres profesional en el ramo o gusto no por el arte?
Saludos.

beticohernandez
join shbcf.ru