This repository contains the source code for ProvisionsPal, a web application that enables users to connect with businesses and get their location for easy access.
- User Management: Register, log in, and manage user profiles.
- Store Management: Add, edit, and delete store information.
- Address Management: Users and stores can have multiple addresses.
- Product Management: Store owners can create, update, and delete products.
- Geocaching: Utilizes geocaching to estimate the distance between stores and the user's current location.
- Flask: A lightweight web application framework.
- SQLAlchemy: An SQL toolkit and Object-Relational Mapping (ORM) library.
- Javascript
- SQLite
- HTML/CSS
- Clone the repository:
git clone https://github.com/your-username/ProvisionsPal.git
cd ProvisionsPal
- Create a virtual environment
python3 -m venv venv
source venv/bin/activate
pip3 -r install requirements.txt
- Create another terminal for the API service and enter this command
python3 -m provisionspall_web.app
Manage user information.
- https://provisionspall-hwvs.onrender.com/api/v1/users: [GET]
- https://provisionspall-hwvs.onrender.com/api/v1/user/: [GET]
- https://provisionspall-hwvs.onrender.com/api/v1/user: [POST]
- https://provisionspall-hwvs.onrender.com/api/v1/user/: [PUT]
- https://provisionspall-hwvs.onrender.com/api/v1/user/: [DELETE]
Manage store information.
- https://provisionspall-hwvs.onrender.com/api/v1/user/store/<store_id>: [DELETE, OPTIONS]
- https://provisionspall-hwvs.onrender.com/api/v1/user/<user_id>/stores: [GET, POST, PUT, OPTIONS]
- https://provisionspall-hwvs.onrender.com/api/v1/stores: [GET, POST, PUT, OPTIONS]
Manage product information.
- https://provisionspall-hwvs.onrender.com/api/v1/<store_id>/product: [GET, POST]
- https://provisionspall-hwvs.onrender.com/api/v1/product/<product_id>: [GET, PUT, DELETE]
Get addresses and location