This project is a Flask-based API for a retail website, providing backend functionality for user authentication, product management, transactions, and more.
Amrita Kondeti, Gabrielle Glasgow, Jason Fearnall, Max Ross
To set up the project locally, follow these steps:
-
Clone the repository to your local machine:
git clone https://github.com/yourusername/product-retail-api.git
-
Install the required dependencies using pipq pip install -r requirements.txt
-
Initialize the SQLite Database
python manage.py db init python manage.py db migrate python manage.py db upgrade
-
Run the flask development server: python app.py
- app.py: Main Flask application file containing routes and application setup.
- models.py: SQLAlchemy models for database tables.
- data_import.py: Module for importing data into the database.
- tests/: Directory containing unit tests for the application.
- static/ and templates/: Directories for static files and HTML templates (if applicable).
The API provides the following functionality
- User Authentication and management
- Product management : CRUD operations, sorting, querying
- Transaction management
- Review management: Add, view, and manage product reviews