This repository contains a complete RH (Resource Handling) management system, which includes:
- ASP.NET Core 8 Web API for the backend.
- Angular 18 for the frontend.
- Flask-based Chatbot for additional functionality.
Here are some screenshots of the application:
## Table of Contents- Prerequisites
- Cloning the Repository
- Backend Setup (ASP.NET Core 8)
- Frontend Setup (Angular 18)
- Chatbot Setup (Flask)
- Running the Application
Before you start, make sure you have the following installed:
- Git
- Node.js and npm
- .NET Core SDK 8
- Python 3.x and
pip - Angular CLI
- Flask
First, clone the repository from GitHub:
git clone https://github.com/oussamahdidou/RH-system-management-and-ChatBot.git
cd RH-system-management-and-ChatBot-
Navigate to the
backenddirectory:cd api -
Restore the .NET dependencies:
dotnet restore
-
Build the project:
dotnet build
-
Update the database (if applicable):
dotnet ef database update
-
Update appsetting.json content email and app-password:
"SmtpSettings": { "Host": "smtp.gmail.com", "Port": 587, "User": "your mail", "Pass": "your apppassword" }
-
Run the backend server:
dotnet run
The backend should now be running on https://localhost:5111.
-
Navigate to the
frontenddirectory:cd ../client -
Install the Angular dependencies:
npm install
-
Run the frontend server:
ng serve
The frontend should now be running on http://localhost:4200.
-
Navigate to the
chatbotdirectory:cd ../chatbot -
Create and activate a virtual environment:
python -m venv venv source venv\Scripts\activate`
-
Install the Python dependencies:
pip install -r requirements.txt
-
Run the Flask server:
flask run
The chatbot should now be running on http://localhost:5002.
To run the entire application, you need to have all three components (backend, frontend, and chatbot) running simultaneously.
- Open three terminal windows or tabs.
- In the first terminal, start the backend by running
dotnet runin thebackenddirectory. - In the second terminal, start the frontend by running
ng servein thefrontenddirectory. - In the third terminal, start the chatbot by running
flask runin thechatbotdirectory.
Now, you should be able to access the full application by navigating to http://localhost:4200 in your web browser.












