Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bert27/angular-shop
An Angular-based e-commerce platform for product browsing, cart management, and online shopping.
https://github.com/bert27/angular-shop
angular-shopping angular18 carousel material-ui ngx-owl-carousel-o pwa responsive-design sass shoping-cart shopings shoppingstore stripe typescript ui
Last synced: 2 months ago
JSON representation
An Angular-based e-commerce platform for product browsing, cart management, and online shopping.
- Host: GitHub
- URL: https://github.com/bert27/angular-shop
- Owner: bert27
- Created: 2024-10-18T09:07:33.000Z (4 months ago)
- Default Branch: develop
- Last Pushed: 2024-11-18T14:01:24.000Z (3 months ago)
- Last Synced: 2024-11-18T15:10:34.918Z (3 months ago)
- Topics: angular-shopping, angular18, carousel, material-ui, ngx-owl-carousel-o, pwa, responsive-design, sass, shoping-cart, shopings, shoppingstore, stripe, typescript, ui
- Language: TypeScript
- Homepage:
- Size: 3.34 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Ng-shop
This project is an online store built with Angular and is currently under construction. At this stage, it includes the product views, a shopping cart functionality, and a carousel on the homepage.
The project is in Spanish. Stripe is configured, but you will need to update your keys: change the public key in the frontend and the private key on the server. The keys are located in the .env files.
To start the server, navigate to the stripe-server directory and run: npm start
## PC
![]()
![]()
## SmartPhone
![]()
![]()
## Install
navigate to the project and write npm i
## Start the web to get started
Run `ng serve` for a dev server. Navigate to `http://localhost:3000/` Or click on Ejecutar.bat and it will start by itself (Windows).
The application will automatically reload if you change any of the source files.--------------------------------------------------
## Code scaffolding
Run `ng generate component component-name` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module`.
## Build
Run `ng build` to build the project. The build artifacts will be stored in the `dist/` directory.
## How to modify products
To modify the products, go to `src/data/data`, where you can find `export const productsData = [ cardProduct1, cardProduct2, macMini, cardProduct4, cardProduct5 ] as ProductDataInterface[];`. By changing the properties of these objects, you can add your own products.
### Example
```javascript
export const cardProduct1 = {
title: 'Iphone 16 pro',
description: 'Smartphone 5G con Control de Cámara, grabación en 4K a 120 f/s con Dolby Vision.',
stock: true,
imageUrl: 'images-products/1.jpg',
options: [
{
price: 1219,
tipo: "128Gb"
},
{
price: 1540,
tipo: "256Gb"
},
{
price: 1800,
tipo: "512Gb"
}
]
};