This project provides a suite of tools and optimizations for designing shelter cross-sections, calculating joint details, and assessing load capacity. Additionally, it includes an API to verify design status under various conditions and a G-code generator for CNC machining specific designs. The API also offers an interactive Swagger documentation interface for testing and exploring endpoints.
- Cross-Section & Joint Optimizations: Optimize the structural design of shelter components.
- Load Calculator: Calculate loads and verify safety for various shelter configurations.
- Design Verification API: Validate design status for different scenarios and structural requirements.
- G-code Generator: Automatically generates CNC-compatible G-code for specified designs.
- Python and Flask installed on your system.
- Swagger is configured for API documentation.
-
Clone the repository:
git clone <repository-url> cd shelter-design-optimizer
-
Set Up a Virtual Environment:
- Create a virtual environment:
python3 -m venv venv
- Activate the virtual environment:
- On Windows:
.venv\Scripts\activate
- On macOS/Linux:
source venv/bin/activate
- On Windows:
- Create a virtual environment:
-
Install dependencies:
pip install -r requirements.txt
-
Update Configuration: Edit app.py to replace flask.locknl.com with your domain name to ensure Swagger and other domain-dependent configurations work.
-
Run the Flask Application:
python app.py
-
Access Swagger Documentation:
- After running, open your browser and go to:
http://your-domain.com/swagger.json
- Replace your-domain.com with the actual domain or localhost if testing locally.
- After running, open your browser and go to:
This project is now ready for you to explore various shelter optimizations and generate CNC G-code directly from your verified designs. Enjoy building safe, efficient shelter structures!