This repository contains the startup configuration for the Hubtel eCommerce Cart API. It configures various services, middlewares, and components required for the API to function properly.
- π Introduction
- π» Installation
- π§ Configuration
- π Usage
- π Contributing
- π License
The Hubtel.eCommerce.Cart.Api project is responsible for setting up and configuring the necessary services, authentication, and routing for the Hubtel eCommerce Cart API. It leverages various libraries and components to achieve its functionality.
- Clone this repository to your local machine.
- π§ Open the project using your preferred development environment (Visual Studio, Visual Studio Code, etc.).
- π¦ Make sure you have the required dependencies installed, such as .NET Core SDK and other referenced packages.
- βοΈ Configure the connection string in the
appsettings.json
orappsettings.Development.json
file to point to your desired database.
The configuration of the Hubtel.eCommerce.Cart.Api project involves several steps to set up various services, database connections, and authentication providers. Key configuration areas include:
- Database Connection: Set up the database connection using the connection string provided in the
appsettings.json
file. - Identity Services: Configure identity settings, including password requirements, lockout settings, and token providers.
- Entity Framework: Configure the Entity Framework database context and migrations assembly.
- Caching: Add caching services for improved performance.
- Swagger Documentation: Set up Swagger and SwaggerUI for API documentation in development.
- Authentication: Configure JWT Bearer authentication for securing API endpoints.
- Authorization: Configure authorization policies for different user roles.
- π¦ Install the required dependencies and configure the connection string as mentioned in the Installation section.
- π Run the application using your preferred development environment or command line tool.
- π During development, the SwaggerUI documentation can be accessed at
/swagger
to explore and test the available API endpoints. - :shopping_bags: The API exposes various endpoints related to eCommerce cart functionality.
Contributions to this project are welcome. If you find a bug or want to suggest an enhancement, feel free to open an issue or submit a pull request. Please ensure that your contributions align with the coding standards and conventions used in the project.
This project is licensed under the MIT License, which means you can use, modify, and distribute the code as long as you retain the original license and copyright notice.