OnWay is a feature-rich e-commerce application built using Flask for the backend and Next.js with Tailwind CSS for the frontend. It offers functionalities like debouncing, infinite scrolling, semantic search, and personalized recommendations. It also integrates secure authentication and payment methods for a seamless shopping experience.
- Debouncing for Improved Search Performance
- Infinite Scroll for a Smooth Browsing Experience
- Semantic Search Using S-BERT (Search by name, category, etc.)
- Personalized Product Recommendations Based on Cart Items
- Secure Authentication Using Clerk
- Fully Functional Shopping Cart and Checkout with Payment Integration
- Frontend: Next.js, Tailwind CSS
- Backend: Flask
- Database: MongoDB + kaggle dataset
- Authentication: Clerk
- Machine Learning: S-BERT for semantic search
- Payment Integration: Paypal
Ensure you have the following installed on your system:
- Python (v3.8 or later)
- Node.js (v16 or later)
- npm or yarn
- MongoDB
-
Clone the repository:
git clone https://github.com/Harshitazz/OnWay.git cd OnWay -
Install frontend dependencies:
cd onway-frontend npm installor
yarn install
-
Install backend dependencies:
cd ../onway-flask pip install -r requirements.txt -
Set up environment variables: Create a
.envfile in the backend directory and add the necessary credentials:SECRET_KEY=<your-secret-key> DATABASE_URL=<your-database-url> STRIPE_SECRET_KEY=<your-stripe-secret-key>
-
Run the backend server:
python app.py
-
Run the frontend development server:
cd ../frontend npm run devor
yarn dev
-
Open the application in your browser at:
http://localhost:3000
Enjoy using OnWay! 🚀