Skip to content

Alex188dot/E-Commerce

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

74 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

E-Commerce

Digital Dojo is a consumer electronics E-Commerce store where customers can buy gadgets like laptops, smartphones, videogames, etc...

Tech stack used for this project: HTML, CSS, Bootstrap, Javascript, RESTful APIs with CRUD methods, MongoDB for the backend hosted on https://striveschool-api.herokuapp.com/.

Front-end

Digital Dojo can be accessed by any device (fully responsive) by clicking on the following link: https://alex188dot.github.io/E-Commerce/

The website will display all the available products, that are fetched directly from the database.

Homepage

By clicking on each product, the user will be able to see more details like a full description and a larger image (this is obtained with only one product.html page, by using query strings).

Screenshot 2023-08-25 at 09 56 35

Furthermore the user will be able to add each product to a cart, through the Add to cart button, which can be found either in the homepage or in the product.html page. By leveraging the use of local storage the cart progress is not lost and can be carried with ease through the different webpages, so that when the user decides to proceed to payment, they can click on the top right of the screen and they will be redirected to the cart summary. If the cart is empty the user will find this message:

Screenshot 2023-08-25 at 15 56 59

On the other hand, if there are items in the cart, a summary like the one below will be displayed:

Screenshot 2023-08-25 at 09 57 54

Here they will be able to see the total, remove items and proceed to payment. If they click on the button the following message will appear:

Screenshot 2023-08-25 at 10 43 50

Back-end

By clicking on the top right of the homepage, on Admin Login, the admin will be able to sign into a private area where they will be able to communicate with the database. To access this part use: Admin01 (username) and 01 (password):

Screenshot 2023-08-26 at 12 45 18

Once succesfully logged in, the admin will be able to add, update, search and remove a product. Success or error messages will be displayed every time an action is performed.

Admin_area

a) Example of adding a product. The admin inserts all the info in the form (all are required) for an Xbox Controller:

Screenshot 2023-08-25 at 10 00 33

By going back to the homepage we will be able to see that the product has been successfully added also on the front-end:

Screenshot 2023-08-26 at 10 27 16

b) Example of updating a product. Let's say the admin wants to change the image for this product: by specifying only the ID (mandatory) and the new image the system will update the imageurl both on the server side and the client side.

Screenshot 2023-08-25 at 10 14 49

Hence the front-end will now show the new image:

Screenshot 2023-08-26 at 10 28 42

c) Example of searching a product. Let's say the admin needs to get the ID of an item quickly, for instance the Xbox, they can just type in the name of the product, and the system will return all the items in the db, matching that query:

Screenshot 2023-08-25 at 10 13 46

d) Example of deleting a product. Let's say the admin needs to delete a product because it is no longer available, they can do so just by inserting the ID in the relative field and click on the Delete Product button:

Screenshot 2023-08-25 at 10 15 39

A confirmation message will be displayed and the product will disappear from the front-end:

Screenshot 2023-08-25 at 10 16 08

About

Digital Dojo is a consumer electronics E-Commerce store where customers can buy laptops, smartphones, videogames, etc...

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published