Welcome to the Clothing Store API, a RESTful API developed with Flask and SQLAlchemy using Clean Architecture for managing a clothing store inventory.
├── src
│ ├── application
│ │ ├── external_services
│ │ └── services
│ ├── domain
│ │ ├── dtos
│ │ ├── entities
│ │ ├── repositories
│ │ └── services
│ ├── infrastructure
│ │ ├── config
│ │ ├── extensions
│ │ └── database
│ │ ├── models
│ │ └── repositories
│ ├── presentation
│ │ ├── controllers
│ │ ├── decorators
│ │ └── errors
│ └── app.py
├── .flaskenv
├── .gitignore
├── query.sql
├── README.md
└── requirements.txt
- application: Contains business logic and services for the application, including internal and external services.
- domain: Defines entities and interfaces for the application.
- infrastructure: Manages data and external integrations, including database configuration.
- presentation: Includes controllers
To get a local copy up and running, follow these simple steps:
-
Clone the repository:
$ git clone https://github.com/milfuegosdev/clothing-store-api.git
-
Navigate to the project directory:
$ cd inventory_rack
-
Install dependencies:
$ pip install -r requirements.txt
-
Setup your environment: Create a
.flaskenv
file in the root directory of your project with the following content:FLASK_APP=src/app.py DB_HOST=localhost DB_PORT=5432 DB_USER=postgres DB_PASSWORD=admin DB_NAME=clothing_store JWT_SECRET_KEY=secret
-
Execute database setup: Execute the SQL queries in query.sql to set up your database.
Your Clothing Store API should now be up and running locally! 🚀
Feel free to explore the project and customize it according to your requirements. If you have any questions or need further assistance, don't hesitate to reach out! 🦖👕
This project is licensed under the MIT License - see the LICENSE file for details.