TecnoShop is a basic technology store based on ReactJs, to display, select and purchase items.
A demo example can be found here: tecnoshop.vercel.app
Node Install node (Ubuntu):
sudo snap install node --classic
Check the versions:
node --version
npm --version
This project was tested with node v14.17.3 and npm 6.14.13.
Download and install the project:
git clone https://github.com/mauriaguilar/tecnoshop-aguilar
cd tecnoshop-aguilar
git checkout main
npm install
Configure the environment variables provided, in the.env file:
REACT_APP_FS_API_KEY="<api-key-here>"
REACT_APP_FS_AUTH="<auth-here>"
REACT_APP_FS_PROJID="<project-id-here>"
REACT_APP_FS_APPID="<app-id-here>"
npm start
- Each product has 5 units in stock: It is not possible to add more than 5 units of each product to the cart.
- When you click on the Buy button, a purchase order is generated: The products are removed from the cart but the stock in the database is maintained so that the application can continue to be used.
- The total price includes the shipping cost for each product: The product price is the number of units times the unit price. If the price of a product is greater than $100, the shipping cost will be $0 for that product.
- App
- NavBar
- CartWidget
- Button
- Paths: / and /category/:id
- ItemListContainer
- ItemList
- Item
- ItemList
- ItemListContainer
- Path: /item/:id
- ItemDetailContainer
- ItemDetail
- ItemCount
- ItemDetail
- ItemDetailContainer
- Path: /cart
- Cart
- Path: /checkout
- Checkout
- Path: /*
- NotFound
- Others:
- CartContext
- Firebase
- NavBar
All images were downloaded from https://pixabay.com/ and are Pixabay licensed. (Credits)