Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/apollo-level2-web-dev/quick-order-with-payment-client
https://github.com/apollo-level2-web-dev/quick-order-with-payment-client
Last synced: 24 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/apollo-level2-web-dev/quick-order-with-payment-client
- Owner: Apollo-Level2-Web-Dev
- Created: 2024-08-21T16:17:07.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2024-08-21T16:21:31.000Z (4 months ago)
- Last Synced: 2024-08-21T18:22:00.600Z (4 months ago)
- Language: TypeScript
- Size: 123 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Quick Order Client
Welcome to the Quick Order Client repository! This project is part of the Next Level Web Development course and provides a complete client-side setup for integrating the AmarPay payment system into a web application. This project demonstrates how to implement a payment system in web applications using AmarPay, specifically designed for advanced web development practices.
---
### **Getting Started**
To get started with this project, follow these steps:
1. **Clone the Repository:**
```bash
git clone https://github.com/Apollo-Level2-Web-Dev/quick-order-with-payment-client.git
```2. **Navigate to the Project Directory:**
```bash
cd quick-order-with-payment-client
```3. **Install Dependencies:**
Ensure you have Node.js and npm installed. Run the following command to install the required dependencies:
```bash
npm install
```4. **Run the Application:**
Start the development server with:
```bash
npm run dev
```Your application will be available at `http://localhost:5173/`.
---
### **Directory Structure**
```plaintext
public/
└── vite.svg # Vite logo or asset used in the projectsrc/
├── App.css # Global styles for the application
├── App.jsx # Main React component for the app
├── index.css # Additional global styles
├── main.jsx # Entry point for the React application
├── redux/ # Redux-related files
│ ├── api/ # API configuration and utilities
│ │ └── api.ts # API service definitions
│ ├── features/ # Redux slices and feature-specific logic
│ │ └── cartSlice.ts # Slice for cart state management
│ ├── hooks.ts # Custom Redux hooks
│ └── store.ts # Redux store configuration
├── routes/ # Route definitions for the application
│ └── index.tsx # Main routing setup
├── assets/ # Static assets like images
│ ├── logo.png # Project logo
│ └── react.svg # React logo or asset
├── components/ # Reusable React components
│ ├── Banner.tsx # Banner component
│ ├── Navbar.tsx # Navigation bar component
│ ├── Products.tsx # Products listing component
│ ├── CartDetails.tsx # Component displaying cart details
│ ├── OrderSummary.tsx # Order summary component
│ ├── Ratings.tsx # Ratings component
│ ├── Modal.tsx # Modal component
│ ├── ProductCard.tsx # Component for displaying a single product
│ └── layouts/ # Layout components
│ └── MainLayout.tsx # Main layout component for the app
├── data/ # Static data files
│ └── products.ts # Product data
├── pages/ # Page components or views
│ ├── Cart.tsx # Cart page component
│ ├── CheckOutPage.tsx # Checkout page component
│ └── Home.tsx # Home page component
└── declarations.d.ts # TypeScript declaration file for module types
```---
### **Important Links**
- [AmarPay](https://www.aamarpay.com/)
- [Initiate Payment (JSON)](https://aamarpay.readme.io/reference/initiate-payment-json)
- [Search Transaction](https://aamarpay.readme.io/reference/search-transaction)