The in my Closet Project is an innovative application designed to promote sustainable fashion choices by helping users manage their wardrobe efficiently. The application allows users to track their clothing items, make informed decisions about their purchases, and reduce waste by promoting a circular economy. By leveraging modern technologies, we aim to create a user-friendly platform that encourages sustainable practices in fashion.
- Wardrobe Management: Users can add, edit, and remove clothing items from their virtual closet.
- Sustainability Insights: The app provides insights into the sustainability of clothing items, helping users make eco-friendly choices.
- Community Sharing: Users can share clothing items with others, promoting reuse and reducing waste.
- .NET Core: The application is built using .NET Core, a cross-platform framework for building modern, cloud-based, and internet-connected applications.
- Entity Framework Core: An ORM (Object-Relational Mapper) for .NET, used to interact with the database in an object-oriented way.
- Swagger/OpenAPI: API documentation and testing tool integrated into the project for easy endpoint exploration and testing.
- Supabase (PostgreSQL): A hosted backend service that provides a PostgreSQL database with additional features like authentication and real-time capabilities.
- React: A JavaScript library for building user interfaces, used for the frontend of the application.
To get started with the project, ensure you have the following dependencies installed:
- Ensure you have the .NET SDK (version 8.0) installed.
To install Entity Framework Core, run the following commands:
dotnet add package Microsoft.EntityFrameworkCore
dotnet add package Microsoft.EntityFrameworkCore.SqlServer
dotnet add package Microsoft.EntityFrameworkCore.Tools
To interact with Supabase, install the Supabase client library:
dotnet add package Supabase
To enable Swagger documentation, install the following package:
dotnet add package Swashbuckle.AspNetCore
-
Clone the repository:https://github.com/fac30/TFB_BackEnd_Margaux.git
git clone cd in my closet
-
Set up your Supabase project and configure the database.
-
Update the connection string in your
appsettings.json
file. -
Run the application:
dotnet run
-
Access the Swagger documentation:
- Navigate to
https://localhost:<port>/swagger
in your web browser - Use the interactive UI to explore and test API endpoints
- API documentation is automatically generated from your controller annotations
- Navigate to