- InventoryManagementSystem.Api: Presentation Layer, providing endpoints and functionality for the platform.
- InventoryManagementSystem.Db: Data access Layer for managing database interactions. This includes the use of Entity Framework Core (EF Core) for working on Object-Relational Mapping (ORM).
- InventoryManagementSystem: Business Logic Layer, handles core business logic.
- InventoryManagementSystem.Tests: Contains unit tests to ensure the reliability and correctness of the platform.
- InventoryManagementSystem.Common: Utilities, and helpers.
- xUnit - for testing
- .NET Core 8 SDK
- PostgreSQL database
This will guide you through the process of installing and configuring the necessary dependencies and getting the application running on your local machine.
-
Prerequisites
Before you begin, ensure you have the following installed on your system:- .NET Core 8 SDK.
- PostgreSQL.
-
Configure the Database
Create a new database for the inventory management system:
CREATE DATABASE InventorySystem;
- Clone the Repository
To get the source code onto your machine, open your terminal or command prompt and run the following command:
git clone https://github.com/Reema-Khaseeb/Inventory-Management-System2.git
- Navigate to Root Directory
cd Inventory-Management-System2/InventoryManagementSystem
- Update the database Connection String in the appsettings.json file with your PostgreSQL details
"ConnectionStrings": {
"DefaultConnection": "your conneciton string"
}
- Restore dependencies and build the project:
dotnet restore
- Create the database schema:
dotnet ef database update
- Run the Application
dotnet run