Charlulu Shop Frontend is the front-end service for the Charlulu Shop. It provides a user interface for buyers to interact with the e-commerce features of the Charlulu Shop website.
⚠️ Important Note: Please be aware that this project does not handle payment transactions. It is designed solely for order management and email notifications to both buyers and sellers.
🌐 Github Page : https://klu0926.github.io/charlulushop-react/
- User Authentication: Secure login and registration.
- Product Browsing: Browse available products with images, descriptions, prices, and stock information.
- Shopping Cart: Add, remove, and manage items in the shopping cart.
- Order Placement: Place orders for selected items with quantity selection and payment options.
- Order Tracking: View and track order status and history.
- React Hash Router: Utilize React Hash Router to simulate URL changes for enhanced user experience.
- YouTube Integration: Display the newest YouTube video from the seller's channel. The backend server fetches data from the YouTube API to provide the latest video.
- Responsive Design: Optimized for various screen sizes, including mobile and desktop devices.
- React: Frontend library for building user interfaces.
- React Router: Routing library for navigating between pages.
- SweetAlert2: Library for customizable alerts and modals.
- Vite: Next-generation frontend tooling for development and build processes.
- Node.js installed on your machine.
- Clone and set up the backend server <-
- Clone the react repository:
git clone https://github.com/klu0926/charlulushop-react.git
- Navigate to the project directory:
cd charlulushop-react
- Install npm modules:
npm install
Before running the application, you need to configure the server API URL in the /src/data/url.js
file. Follow these steps:
- Open the
/src/data/url.js
file in your code editor. - Depending on your environment, set the
server
variable to point to the API server URL. If you're deploying to GitHub Pages, use the Heroku URL. Otherwise, when using on local, use the local server URL.
const isGitHubPages = window.location.hostname === 'your github url'
const heroku = 'your sever url'
const localServer = 'your local testing port'
const base = '/charlulushop-react'
const url = {
server: isGitHubPages ? heroku : localServer,
client: base,
}
export default url
npm run dev
- push the project to your repo
- set up vite.config.js
- git commit and run npm script
npm run deploy
If you have any questions, feedback, or suggestions, feel free to reach out:
- Email: [email protected]
- GitHub: klu0926