Welcome to our Ecommerce Medicine Store application! This web application is built using the Flask framework and is designed to facilitate the online sale of medicines. It provides a user-friendly interface for customers to browse, search, and purchase medicines conveniently from the comfort of their homes.
- User Authentication: Users can create accounts, log in, and manage their profiles.
- Product Catalog: Browse a wide range of medicines with detailed information.
- Search Functionality: Easily find specific medicines using the search bar.
- Shopping Cart: Add medicines to the cart for a seamless shopping experience.
- Order Management: Track and manage your orders through the user dashboard.
- Admin Panel: Admins can add, edit, and remove products from the catalog.
-
Clone the Repository:
git clone https://github.com/shreyas-bk24/MediKit.git
-
Navigate to the Project Directory:
cd MediKit
-
Create a Virtual Environment:
python -m venv venv
-
Activate the Virtual Environment:
- For Windows:
venv\Scripts\activate
- For Unix or MacOS:
source venv/bin/activate
- For Windows:
-
Install Dependencies:
pip install -r requirements.txt
-
Configure the Database:
- Update the database URI in
config.py
or set it as an environment variable.
- Update the database URI in
-
Run the Application:
python run.py
-
Access the Application: Open your web browser and navigate to http://localhost:5000.
- Update configuration settings in
config.py
as needed, such as database URI, secret key, and other application settings.
To access the admin panel, you need to create an admin account. Use the Flask shell to set the admin role for your account:
flask shell
Inside the shell, run the following commands:
from app import db, create_app
from app.models import User, Role
app = create_app()
app.app_context().push()
# Replace 'your_username' with your actual username
user = User.query.filter_by(username='your_username').first()
user.role = Role.query.filter_by(name='admin').first()
db.session.commit()
If you'd like to contribute to the development of this application, please follow our contribution guidelines.
This project is licensed under the MIT License.
If you encounter any issues or have questions, please open an issue on our GitHub repository.
Thank you for using our Ecommerce Medicine Store application! Happy shopping!