A Flask-based web application for an online store, enabling users to browse, wishlist, and purchase products. Built using Python (Flask), JavaScript (jQuery), CSS (Bootstrap), and connected to SQLite/PostgreSQL.
- User Accounts: Register and log in to manage personal profiles.
- Product Browsing: View all products available for sale.
- Wishlists: Add favorite products to your wishlist (Registered users only).
- Shopping Cart: Add products to your cart and make purchases (Registered users only).
- Seller Features: Put up products for sale (Registered users only).
- Python 3.10+ (but below 3.12) is recommended.
- Using a virtual environment is strongly recommended.
- Clone the repository:
git clone https://github.com/AmiraliSajadi/Oasis-Storefront.git
cd cd Oasis-Storefront
- Set up a virtual environment:
python3 -m venv myenv
source myenv/bin/activate # On Windows: myenv\Scripts\activate
- Install dependencies:
pip install -r requirements.txt
- Use the included database.db file or populate it with dummy data:
sqlite3 app/sqlite/database.db
sqlite> .read ./sample_query.txt
- Set the following environment variables used in config.py:
OASIS_DATABASE_URL
- Update config.py accordingly.
Start the Flask app by running:
python run.py
Open your web browser and navigate to http://localhost:5000