The Component Management System is a utility application designed to manage FreeCAD models from different online repositories. It provides features to seamlessly browse, download, and organize individual models while avoiding the need to download the entire library. The system is built using Flask, SQLite, and SQLAlchemy, and it serves as the backend API for the Component Library Plugin.
- Browsable online repository of FreeCAD components.
- Individual component download with preview and metadata.
- Integration with the Component Library Plugin frontend.
- Structured online repository storage system.
- RESTful API endpoints for component management.
- Clone the repository:
git clone [repository URL]
- Navigate to the project directory:
cd Component_Management_System
- Install dependencies using Poetry:
poetry install
- Run API:
flask run
- python = "^3.10"
- flask-sqlalchemy = "^3.0.3"
- flask-marshmallow = {version = "0.14.0", extras = ["sqlalchemy"]}
- connexion = {extras = ["swagger-ui"], version = "^2.14.2"}
- flask = "2.2.2"
- elasticsearch = "^8.8.0"
- python-dotenv = "^1.0.0"
- pygithub = "^1.59.0"
- Setup elastic search
- Add environment variables to .env file of directly
- FLASK_APP=component_management_system
- FLASK_SECRET_KEY
- FLASK_DEBUG
- ELASTICSEARCH_USERNAME
- ELASTICSEARCH_PASSWORD
- ACCESS_TOKEN (github)