This project is an Inventory Management System designed to manage IT assets. It includes features such as inventory tracking, user management, reports and analytics, asset management, maintenance schedules, and device status reporting.
- Inventory Tracking: Keep track of all IT assets, including their current status (available or faulty).
- User Management: Manage user roles and permissions.
- Reports and Analytics: Generate reports and analyze data related to IT assets.
- Asset Management: Manage the lifecycle of IT assets from procurement to disposal.
- Maintenance Schedules: Track maintenance schedules and service history for each asset.
- Device Status Reporting: Report on the status of devices, including available and faulty devices.
- Backend: ASP.NET Core
- Frontend: Angular
- Database: SQL Server
- .NET SDK 8.0 or higher
- Node.js 20.0 or higher
- Angular CLI 18.0 or higher
- SQL Server
-
Clone the Repository
git clone https://github.com/Njabulo240/InventorySystem.git cd InventorySystem
-
Setup Database
Ensure SQL Server is running and update the connection string in
appsettings.json
to match your database configuration."ConnectionStrings": { "sqlConnection": "server=.; database=InventrySystemDb; Integrated Security=true; TrustServerCertificate=true" }
-
Run Migrations
The application uses the Code First approach of Entity Framework Core.
-
Open the Package Manager Console in Visual Studio.
-
Set InventrySystem as the default project.
-
Run the following command to update the database:
Update-Database
-
Run the API
The API will be available at
https://localhost:5001/swagger/index.html
.
-
Navigate to Frontend Directory
cd InventrySystem/InventryUI
-
Install Dependencies
Install the necessary npm packages:
npm install
-
Update Environment Configuration
Update the API endpoint in
src/environments/environment.ts
to match the URL where your backend API is running:export const environment = { production: false, apiUrl: 'https://localhost:5001' };
-
Run the Angular App
Use the following command to start the Angular development server:
ng serve
The Angular app will be available at
http://localhost:4200
.
LOGIN WITH USERNAME OR EMAIL ADDRESS
- Default Administrator Account
- Email: [email protected]
- Password: Password.123
Contributions are welcome! Please fork the repository and submit a pull request for any improvements.
This project is licensed under the MIT License.